SQL基本用法二 Li.016
1. 创建表 create table if not exists usrinfo( id INT(11), number INT(11), name VARCHAR(255), birthday DATE ); 2. 查询表结构 show full columns from usrinfo; desc usrinfo; describe usrinfo; 3. 查询创建表的语句 show create table usrinfo; 4. 插入数据 4.1 插入单选数据 insert into usrinfo values (12123123,"hello","1990-02-15"); 4.2 插入多行数据 insert into usrinfo values (12123123,"hello","1990-02-15"), (12123123,"cc","1991-03-01"); 4.3 插入某些列 insert into usrinfo(number,name) values (121234123,"eefef"); 4.4 插入某些列多行 insert into usrinfo(number,name) values (121234123,"eefef"), (121234123,"eefef"); 5. 查询某一列不重复的值 select distinct number from usrinfo; 6....