摘要:SELECT * FROM dbo.tbl_Web_Photos AS ptLEFT JOIN dbo.tbl_Web_Friends AS fd ON pt.user_email=fd.AddEmailWHERE fd.Email='jing.yang@innoways.com'记录。
阅读全文
posted @ 2014-04-15 16:30
|
|||
随笔分类 - 09.【SQL】
摘要:SELECT * FROM dbo.tbl_Web_Photos AS ptLEFT JOIN dbo.tbl_Web_Friends AS fd ON pt.user_email=fd.AddEmailWHERE fd.Email='jing.yang@innoways.com'记录。
阅读全文
posted @ 2014-04-15 16:30
摘要:select *,row_number()over(order by id) as number_id from [dbo].tb_pccw20140213
阅读全文
posted @ 2014-02-21 12:30
摘要:1.复制数据表。原样复制。select * into new_tb from old_tb 2012版本select * into [pccw].[dbo].[tb_pccw20130911] from [pccw].[dbo].[tb_pccw20130905]select * into new_tb from old_tb where 11复制表结构删除表中所有的数据记录:delete from table1
阅读全文
posted @ 2012-11-21 15:01
|
|||