sql 567

#SQL
MYSQL存储过程中使用游标嵌套的实例

delimiter $$ drop procedure if exists findErrorLifeRoute $$ CREATE PROCEDURE findErrorLife…

2015-02-20 907

#SQL
MySQL 从一张表update多个字段到另外一张表中去

例如: 把表 tk_zyt_scenery_order的 字段更新到 t_advs_order中去, 一般可能会这样写: UPDATE t_advs_order SET attri…

2015-02-20 271

#SQL
交叉制表-验证对象的存在(3)

--通过考察sysobjects 表可以验证源对象的存在性.所有提供的三个列分别被检查以查看---他们对于提供的源对象在syscolumns表中是否存在. --check if s…

2015-02-17 982

#SQL
MySQL 存储过程使用 REPEAT 来打开游标读取数据

mysql> mysql> mysql> delimiter $$ mysql> CREATE PROCEDURE myProc (in_customer_…

2015-02-17 186

#SQL
mysql授权某数据库 允许某用户远程连接

grant all privileges on *.* to 'userName'@'%' identified by 'password' WITH GRANT OPTION; …

2015-02-16 601

#SQL
sql server 取整函数.

FLOOR 返回小于或等于指定数值表达式的最大整数。 CEILING 返回大于或等于指定数值表达式的最小整数。 round是四舍五入

2015-02-15 374

#SQL
多条件排序

select * from i_music where sid='$sid' order by scorenum asc,dateline asc

2015-02-14 646

#SQL
ORACLE中查看表空间的简要存储状态

select b.tablespace_name "表空间名", round(b.all_byte) "总空间(M)", round(b.all_byte-a.free_byte)…

2015-02-14 787

#SQL
SQL导出为Word

Version: SQL Server 7.0/2000 Created by: Alexander Chigrik http://www.MSSQLCity.com/ - all…

2015-02-13 956

#SQL
sql Raiserror with parameters

DECLARE @raiseErrorCode nvarchar(50) SET @raiseErrorCode = CONVERT(nvarchar(50), YOUR UNIQ…

2015-02-13 697

#SQL
中文存数据库乱码

show variables like ‘collation%’; 其中,character_set_client为客户端编码方式;character_set_connection…

2015-02-12 559

#SQL
SQL Server 2005 数据库的调度作业的失败执行步骤

修改失败使要执行的步骤为“转到下一步” 。

2015-02-12 506
1 33 34 35 36 37 48