随笔分类 - 数据库
摘要:SQL Server T-SQL高级查询 高级查询在数据库中用得是最频繁的,也是应用最广泛的。 Ø 基本常用查询 --select select * from student; --all 查询所有 select all sex from student; --distinct 过滤重复 selec
阅读全文
摘要:快速解决方法:原因,在使用ado.net entity的时候,entity使用的数据库是sqlserver 2008,但后来实际使用中使用的数据库是sqlserver 2005,操作DateTime类型的数据是会提示:”使用的 SQL Server 版本不支持数据类型“datetime2”The v...
阅读全文
摘要:/* ------sqlserver 2008 删除某数据库所有表-------- */declare @tname varchar(8000)set @tname=''select @tname=@tname + '[' + Name + '],' from sysobjects where xt...
阅读全文

浙公网安备 33010602011771号