SQL server
mafei912
这个作者很懒,什么都没留下…
展开
-
SQL server 2008安装图解
SQL server 2008安装图解转载 2012-04-20 15:36:30 · 337 阅读 · 0 评论 -
显示内容太多用...显示的SQL语句
select NewsID,News_type,News_name,case when datalength(News)>100 then substring(News,0,100)+'......' else News end as News from News_TB原创 2012-05-28 16:03:17 · 475 阅读 · 0 评论 -
如何把一个数据中的表中的数据,插入到另外一个数据库中
insert into 数据库b.dbo.表b (a,b,c,d,e) select a,b,c,d,e from 数据库a.dbo.表a原创 2012-06-18 14:37:08 · 433 阅读 · 0 评论 -
删除SQL表中所有数据 Truncate
Truncate Table name(表名)。原创 2012-07-02 15:28:03 · 513 阅读 · 0 评论 -
winfrom下使用水晶报表
http://v.youku.com/v_show/id_XMTU1OTU3ODQ=.html转载 2012-07-20 16:20:23 · 363 阅读 · 0 评论 -
查询存储过程创建时间
select a.[create_date],a.name,a.[type],b.[definition],* from sys.all_objects a,sys.sql_modules b where a.is_ms_shipped=0 and a.object_id = b.object_id and a.[type] in ('P') order by a.create_date原创 2015-09-08 10:12:54 · 1307 阅读 · 0 评论 -
SQL查询当天数据
--查询当天: select * from info where DateDiff(dd,datetime,getdate())=0 --查询24小时内的: select * from info where DateDiff(hh,datetime,getDate())--info为表名,datetime为数据库中的字段值--查询当天:select * fro原创 2015-10-28 15:51:31 · 1487 阅读 · 0 评论 -
SQL查询ID以逗号分隔,id对应的详细信息
现在有两个表,表a中序号 主管领导1 1,2,32 2,4表b中序号 姓名1 李一2 刘二3 张三4 李四怎么联合查询出 序号 主管领导转载 2015-10-28 15:54:51 · 4751 阅读 · 0 评论