过河的小兵

不积跬步,无以至千里;不积小流,无以成江海.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  数据库

摘要:select*intodestTblfromsrcTblinsertintodestTbl(fld1, fld2)select fld1, 5fromsrcTbl以上两句都是将 srcTbl 的数据插入到 destTbl,但两句又有区别的:第一句(select into from)要求目标表(destTbl)不存在,因为在插入时会自动创建。第二句(insert into select from)要... 阅读全文
posted @ 2010-04-08 10:47 过河的小兵 阅读(321) 评论(0) 推荐(0)

摘要:转自: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... 阅读全文
posted @ 2009-10-29 10:48 过河的小兵 阅读(756) 评论(0) 推荐(0)

摘要:VC通过ADO链接ORACLE数据库的一个简单的小例子:[代码] 阅读全文
posted @ 2009-10-23 11:21 过河的小兵 阅读(337) 评论(0) 推荐(0)