union這個連接是有什么用的和INNER JOIN有什么區別
來源:程序員人生 發布時間:2014-04-30 11:20:59 閱讀次數:2906次
Inner join 是兩張表做交連后里面條件相同的部分記錄產生一個記錄集
union是產生的兩個記錄集(字段要一樣的)并在一起
成為一個新的記錄集
Select A
Field
B
field
from Table
A inner join Table
B on a
Field
=b
Field
where
Select Field
from Table
union Select Field
from table
方案二
select aidatitlentent from 表格 as a表格 as b where aid=bid order by aid
rs(id)
rs(title)
rs(content)
另
新建一個表xxx
sql=insert into xxx select PidPtitlentent from picture P inner join miaoshu M on Pid=Mid
connexecute sql
生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈