打开文件或程序'API函数声明Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lp...
分类:
数据库 时间:
2015-01-18 13:10:01
阅读次数:
232
1--所有的表添加'datatsp和datatsp_int'--select * from sysobjects where xtype='U' order by name--数据库中所有的只具有一个主键表添加'datatsp和datatsp_int'declare @table_name varc...
分类:
数据库 时间:
2015-01-18 10:30:54
阅读次数:
261
主要是两方面:1.shader数据和dx的通信,使用constantBuffer2.矩阵的数学计算方式和内存存储方式再DX和HLSL中的异同先说第一个: dx中的常量数据matrix等传入shader中流程:The first thing that we need to do is declare ...
分类:
其他好文 时间:
2015-01-17 19:22:25
阅读次数:
234
DECLARE @T varchar(255),@C varchar(255) DECLARE Table_Cursor CURSOR FOR select a.name,b.name from sysobjects a,syscolumns b where a.id=b.id and a.xtyp...
分类:
数据库 时间:
2015-01-17 17:53:47
阅读次数:
199
--删除所有约束 DECLARE c1 cursor for select 'alter table ['+ object_name(parent_obj) + '] drop constraint ['+name+']; ' from sysobjects wher...
分类:
数据库 时间:
2015-01-17 17:43:43
阅读次数:
181
马士兵大哥数据库教程3阶段 游标(CURSOR): (1) DECLARE CURSOUR C IS SELECT * FROM EMP; V_EMP C%ROWTYPE; BEGIN OPEN C; FETCH C INTO V_EMP; -- ...
分类:
数据库 时间:
2015-01-16 20:53:28
阅读次数:
214
SQl修改数据库架构名declare @name sysname declare csr1 cursor for select TABLE_NAME from INFORMATION_SCHEMA.TABLES open csr1 FETCH NEXT FROM csr1 INTO ...
分类:
数据库 时间:
2015-01-16 18:43:23
阅读次数:
302
---循环declare @n intdeclare @rowcount int declare @name varchar(50)create table #temp( id int identity(1,1), ColumnNme nvarchar(100))insert into #temp ...
分类:
数据库 时间:
2015-01-15 12:32:43
阅读次数:
169
CREATE TRIGGER IC_Deploy_SNP_TRIGGER ON IC_DeployFOR Insert,UpdateASBEGIN DECLARE @LocalOrgCode CHAR(3); DECLARE @OutOrgCode char(3); ...
分类:
数据库 时间:
2015-01-15 00:22:44
阅读次数:
224
declare @i intset @i = 1999while(@i<2009)begindeclare @sql varchar(8000)set @sql = 'update dbo.cltj'+ltrim(str(@i))+'set ydw = ''Ten Thousand Tons''' ...
分类:
数据库 时间:
2015-01-13 21:22:06
阅读次数:
192