djlzxzy

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

2009年7月15日

摘要: 数据库1:AAA 数据库2:BBB 数据库名和表名之间放两个点 Sql代码 select*from[AAA]..TableAa innerjoin[BBB]..TableBbona.AcountID=b.ClientIDselect * from [AAA]..TableA a inner join [BBB]..TableB b on a.AcountID = b.ClientID注意:必须是单... 阅读全文
posted @ 2009-07-15 10:18 djlzxzy 阅读(372) 评论(0) 推荐(0) 编辑

摘要: select into 和 insert into select 两种表复制语句 select * into destTbl from srcTblinsert into destTbl(fld1, fld2) selec t fld1, 5 from srcTbl以上两句都是将 srcTbl 的数据插入到 destTbl,但两句又有区别的。第一句(select into from)要求目标表(d... 阅读全文
posted @ 2009-07-15 10:17 djlzxzy 阅读(154) 评论(0) 推荐(0) 编辑