创建表(MySql基本语句):CREATE TABLE table_name ( tfield1 datatype, tfield2 datatype, tfield3 datatype )character set charsetname collatename; field:指定列名datatype:指定列类型t注意:创建表时,要根据需保存的数据创建相应的列,并根据数据的类型定义相应的列类型。例:user对象tid int tname string tpassword string tbirthday date注意:创建表前,要先使用use db语句使用库。 tIdtName tPasswordtbirthday t inttvarchar(10)tdate * Basic SELECT Statement In its simplest form, a SELECT statement must include the following: A SELECT clause, which specifies the columns to be displayed A FROM clause, which specifies the table containing the columns listed in the SELECT clause In the syntax: tSELECTtttis a list of one or more columns t* ttttselects all columns tDISTINCTtttsuppresses duplicates tcolumn|expressiontselects the named column or the expression taliastttgives selected columns different headings tFROM table ttspecifies the table containing the columns Note: Throughout this course, the words keyword, clause, and statement are used as follows: A keyword refers to an individual SQL ele