摘要:select*intodestTblfromsrcTblinsertintodestTbl(fld1, fld2)select fld1, 5fromsrcTbl以上两句都是将 srcTbl 的数据插入到 destTbl,但两句又有区别的:第一句(select into from)要求目标表(destTbl)不存在,因为在插入时会自动创建。第二句(insert into select from)要...
阅读全文
随笔分类 - 数据库
摘要:select*intodestTblfromsrcTblinsertintodestTbl(fld1, fld2)select fld1, 5fromsrcTbl以上两句都是将 srcTbl 的数据插入到 destTbl,但两句又有区别的:第一句(select into from)要求目标表(destTbl)不存在,因为在插入时会自动创建。第二句(insert into select from)要...
阅读全文
摘要:转自:http://www.phpweblog.net/zwws/archive/2007/02/23/944.htmlleft join 命令详解 给个通俗的解释吧. 例表a aid adate 1 a1 2 a2 3 a3 表b bid bdate 1 b1 2 b2 4 b4 两个表a,b相连接,要取出id相同的字段 select * from a inner join b on a.aid...
阅读全文
摘要:VC通过ADO链接ORACLE数据库的一个简单的小例子:[代码]
阅读全文
|