上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: @@identity表示最近一次向具有identity属性(即自增列)的表插入数据时对应的自增列的值,是系统定义的全局变量。一般系统定义的全局变量都以@@开头,用户自定义的变量以@开头。比如有个表A,它的自增列是id。当向A表插入一行数据后,如果插入数据后自增列的值自动增加到101,则通过select @@identity得到的值就是101。使用@@identity的前提是使用了insert操作,执行select @@identity时连接没有关闭,否则得到的将是NULL。IDENT_CURRENT 返回为任何会话和任何作用域中的特定表最后生成的标识值。IDENT_CURRENT 不受作用域和 阅读全文
posted @ 2011-12-24 14:53 szjdw 阅读(793) 评论(0) 推荐(0) 编辑
摘要: <%-- Name:Author: Description: --%><%@ CodeTemplate Language="C#" TargetLanguage="C#" ResponseEncoding="UTF-8" Src="" Inherits="" Debug="False" Description="Template description here." %><%@ Property Name="Tabl 阅读全文
posted @ 2011-12-23 18:49 szjdw 阅读(231) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function () {// $(".main").height($(".main_left").height() > $(".main_left").height() ? $(".main_left").height() : $(".main_left").height()); alert($(".main").height());// $("#test").html($(".menu_block&q 阅读全文
posted @ 2011-12-23 15:03 szjdw 阅读(74) 评论(0) 推荐(0) 编辑
摘要: test.cst<%@ CodeTemplate Language="C#" TargetLanguage="Text" Src="" Inherits="" Debug="False" CompilerVersion="v3.5"Description="Template description here." %><%@ Assembly Name="SchemaExplorer" %><%@ Impor 阅读全文
posted @ 2011-12-21 17:30 szjdw 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 理解了一个深刻的道理: 接手别人留下的半成品,怎么做? 不保证系统数据正确,确保查询的数据是预期的。即能查到正确的原始数据,然后越走越好!后来多次建议修改系统皆未果,为什么?没有完美的产品,只要有人参与就会完美。没有必要需要完美的产品,工具+人,只要快速完美的解决问题就行! 阅读全文
posted @ 2011-12-21 16:06 szjdw 阅读(150) 评论(0) 推荐(0) 编辑
摘要: declare @prdtid char(7)declare @date_str char(4)declare @date_int intdeclare @sql nvarchar(3000)declare @bigc intdeclare @cop char(2)set @bigc=1set @cop='02'if object_id('tempdb.dbo.#class') is nullbegincreate table #class(ClassID nvarchar(15),bigc int)endtruncate table #classinsert 阅读全文
posted @ 2011-12-20 14:55 szjdw 阅读(170) 评论(0) 推荐(0) 编辑
摘要: declare @mouth int declare @start nvarchar(20) declare @end nvarchar(20) declare @sql nvarchar(3000) set @mouth=1 while @mouth<=12 begin if @mouth=12 begin set @start='2011-'+ltrim(rtrim(STR(@mouth)))+'-1' set @end='2012-'+ltrim(rtrim(STR(1)))+'-1' end else begin s 阅读全文
posted @ 2011-12-19 16:51 szjdw 阅读(159) 评论(0) 推荐(0) 编辑
摘要: declare @mouth int --declare @start datetime --declare @end datetime declare @start nvarchar(20) declare @end nvarchar(20) declare @str nvarchar(3000) declare @sql nvarchar(3000) set @mouth=1 while @mouth<=12 begin if @mouth=12 beginset @start='2011-'+STR(@mouth)+'-1'--set @start= 阅读全文
posted @ 2011-12-19 16:07 szjdw 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1,cast:将某种数据类型的表达式显式转换为另一种数据类型。CAST 和 CONVERT 提供相似的功能。语法使用 CAST:CAST ( expression AS data_type ) as : sql里列的别名建议:象cast, as 之类的都是sql 语句里的关键字,在查询分析器里,选择后,按F1+SHIFT就可以查询帮助。2,使用str函数 语法 STR ( float_expression [ , length [ , decimal ] ] ) 参数 float_expression 是带小数点的近似数字 (float) 数据类型的表达式。不要在 STR 函数中将函... 阅读全文
posted @ 2011-12-19 14:50 szjdw 阅读(186) 评论(0) 推荐(0) 编辑
摘要: test.cst:<%@ CodeTemplate Language="C#" TargetLanguage="Text" Src="" Inherits="" Debug="False" CompilerVersion="v3.5" Description="Template description here." %><%-- 加载访问数据库的组件SchemaExplorer,并声明其使用的命名空间 --%><%@ Asse 阅读全文
posted @ 2011-12-17 18:31 szjdw 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页