文章分类 - Sql Server
摘要:Convert(<data_ type>[ length ],<expression> [, style]),其中Style的取值太多了,有没有简便方法记住呢?Select CONVERT (varchar(100), GETDATE(), 0): 05 16 2006 10:57AMSelect CONVERT (varchar(100), GETDATE(), 1): 05/16/06Select CONVERT (varchar(100), GETDATE(), 2): 06.05.16Select CONVERT (varchar(100), GETDATE()
阅读全文
摘要:有人说数据库中<>any等于not in ,按理说select * from b where name <> any (select name from a )与select * from b where name not in (select name from a )的查询结果应该是一样的,可是为什么事实不是这样的呢?实际上select * from b where name = any (select name from a )与select * from b where name in (select name from a )的查询结果是一致的。
阅读全文
浙公网安备 33010602011771号