随笔分类 - 数据库
sql 05,08
摘要:今天弄SqlServer代理作业,弄了半天,把遇到的问题总结出来,主要是抨击一下Sql Server的Express版本。好了,看下面的正题。首先,需要安装Sql Server Agent服务,该服务可以在Sql Server配置管理器中查看是安装成功,然后启动该服务。在这一步中,保证与Sql Server Agent服务与对应的Sql Server数据服务都不是Express版本。Express版本有很多限制:1、数据库容量限制到4GB。2、没有表分区功能。3、不支持Sql Server代理,如果大家还有什么对Express的控诉,欢迎补充。其次,保证Sql Server Managemen
阅读全文
摘要:osql -U sa -P sa -i D:\bf.sqlbf.sql backup database users to disk='d:\full.bak'
阅读全文
摘要:导出:exp userid=system/bm2d0@dgqs1 file=D:\exp_bm2d0_daochu_20110518.dmp tables=(bm2d0.TEA01,es.TESFORMRESINFO,es.TESBUTTONRESINFO,es.TESTREEINFO,es.TESGROUPINFO,es.TESGROUPACCESS,bm2d0.TFMPL03,bm2d0.TFMPL04,es.TESGROUPMEMBER)导入:sqlplus system/bm2d0@dgqs0 @d:1.sql >ora.logimp userid=system/bm2d0@dg
阅读全文
摘要:1、字符串连接select concat('0591','8888888') || '转23' from dual结果:05918888888转232、首字母大写 select initcap('zhang san') from dual结果:Zhang San3、INSTR(C1,C2,I,J) 在一个字符串中搜索指定的字符,返回发现指定的字符的位置;C1 被搜索的字符串C2 希望搜索的字符串I 搜索的开始位置,默认为1J 出现的位置,默认为1select instr('test test','es
阅读全文
摘要:Oracle计算时间差表达式 --获取两时间的相差豪秒数select ceil((To_date('2008-05-02 00:00:00' , 'yyyy-mm-dd hh24-mi-ss') - To_date('2008-04-30 23:59:59' , 'yyyy-mm-dd hh24-mi-ss')) * 24 * 60 * 60 * 1000) 相差豪秒数 FROM DUAL;/*相差豪秒数---------- 864010001 row selected*/--获取两时间的相差秒数select ceil((To_d
阅读全文
摘要:select * from TFMQM02 where rowid=(select max(rowid) from TFMQM02)
阅读全文
摘要:1.desc 表名 :显示数据表的结构2.as 省略了as 比如 mssql中的select name as 姓名 在oracle中 改为 select name 姓名3.增加了 any, some 的嵌套查询功能 两个参数作用一样 例子如下select name form class.emp where number>any(select number form student.emp w...
阅读全文
摘要:http://download.csdn.net/source/1690367
阅读全文
摘要:哎,编程一接触就开始接触的是sql2005,这个时候却要用sql2000,进行开发。听说有的地方还是有区别的先熟悉熟悉一下工具吧。
阅读全文
摘要:如果tid是自动增长的列的话要改成StrSql = "select * from newsinfo where tid= " & tid
阅读全文
摘要:1. select top (18 * 1) ReviewID from Review WHERE ProductID = 0报错'(' 附近有语法错误。 sql05不报错
阅读全文
摘要:1.如果服务器上面有ldb,传不上去。重新传上web.config重启服务。就搞定2.如果整个网站是用access数据库建设的,完成的时候,.mdb要修改成.cgi,.config..等客服端无法访问的后缀.
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--ifexists(select*fromsysobjectswhere[name]='Trig_MemberGropu')droptriggerTrig_MemberGropugocreatetrig...
阅读全文
摘要:1.更换数据库用户名代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--CREATEPROCEDUREdbo.changename@OldOwnerasNVARCHAR(128),--参数原所有者@NewOwnerasNVARCHAR(128)--参...
阅读全文
摘要:1.sql去掉字母代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--createfunctiondbo.F_Get_No(@Novarchar(100))RETURNSbigintASBEGINWHILEPATINDEX('%[^0-9]%',@No...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/----//===========================================================--//==(c)2010FoosunInc.bydotNETCMS1.0...
阅读全文
摘要:错误信息如下:标题: Microsoft SQL Server Management Studio Express------------------------------附加数据库 对于 服务器“PT-PC\SQLEXPRESS”失败。 (Microsoft.SqlServer.Express.Smo)有关帮助信息,请单击: http://go.microsoft.co...
阅读全文

浙公网安备 33010602011771号