随笔分类 - SQL Server
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> CREATE TABLE #tabTmp(id int) INSERT #tabTmp EXECUTE('SELECT id FROM '+@TableName)...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->******************************************************** author:Susan*** date:2005/08/05*** expliation...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->insert into dest-tablename(a, b, c) select d,e,f from source-tablename; 还可以这样 Code hig...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->create table dest-tablename as select * from source-tablename where 1=2; Code highlighting produced by...
阅读全文
摘要:期望效果: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->select * From Empoylee Where(Address1,Address2) in(Select Address1,Address2From EmpoyleeAdresses...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->(case FieldName When 0 then 1 when Null then 1 else FieldName end) as FieldName
阅读全文
摘要:1.添加字段 ALTER table customer add Gender char(1) ALTER table customer add(Gender char(1)) 2.修改字段名称 ALTER table customer change Address Addr char(50) ALTER table customer change Address(Addr char(50)) ...
阅读全文
摘要:FLOOR(expr) 返回小于等于expr的最大整数.FLOOR(1,1)返回报,FLOOR(-1,1)返回-2,FLOOR(1)返回1
阅读全文