SQL 基本語句
阿新 • • 發佈:2018-12-11
查詢:
select 列名 from 表名 條件(where )
更新:
update 表名 set 列='值‘,列='值’
插入:
insert into 表名(列名1,列名2,...,列名d) value(‘值1’,‘值2’,...,‘值d’)
刪除:
delete from table where 列='值'
inner jion,left jion,right jion,full outer jion;
select 列名
from table 1
inner jion table 2
on table1.column_name=table2.column_name
select 列名
from table 1
left jion table 2
on table1.column_name=table2.column_name
select 列名
from table 1
right jion table 2
on table1.column_name=table2.column_name
select 列名
from table 1
full outer jion table 2
on table1.column_name=table2.column_name