c++和java區(qū)別 sql基本語句有哪些?
sql基本語句有哪些?查詢語句-select * from table select * from table where 條件1=數(shù)值 and 條件2=數(shù)值 sele
sql基本語句有哪些?
查詢語句-select * from table select * from table where 條件1=數(shù)值 and 條件2=數(shù)值 select * from table where id in (select id from table)兩表關(guān)聯(lián) select a.a,b.b,c.c from table1 a,table2 b,table3 c where a.id1=b.id2插入語句-insert into table (字段1,字段2,字段3,……) values (數(shù)值1,數(shù)值2,數(shù)值3,……)更新語句-update 表名 set 數(shù)值 where=id = 1添加列語句-alter table 表名 add (列名1 類型1,列名2 類型2,列名3 類型3,……)修改列類型-alter table 表名 modify (列名1 類型1,列名2 類型2,列名3 類型3,……)刪除列語句-alter table 表名 drop column 列名s顯示查詢時(shí)間-set timing on刪除表語句-deltet table 表名清空表數(shù)據(jù)-truncate table 表名修改列名 - ALTER TABLE emp RENAME COLUMN comm TO newa