摘要: 請問這三個存諸過程的作用是什么﹖sp_cursoropen,sp_cursorfetch,sp_cursorcloseAPI服务器游标实现 SQLServerOLEDB提供程序、SQLServerODBC驱动程序和DB-LibraryDLL使用这些特殊的系统存储过程向服务器示意游标操作。sp_cursoropen定义与游标和游标选项相关的SQL语句,然后生成游标。sp_cursorfetch从游标中提取一行或多行。sp_cursorclose关闭并释放游标。sp_cursoroption设置各种游标选项。sp_cursor用于请求定位更新。sp_cursorprepare把与游标有关的Tran 阅读全文
posted @ 2013-08-01 17:22 上浅草涯 阅读(852) 评论(0) 推荐(0) 编辑
摘要: IF EXISTS(SELECT 1 FROM sys.views WHERE name='V_PARENT_CLIENT') DROP VIEW V_PARENT_CLIENT GOcreate view V_PARENT_CLIENTasselect* from T_CSC_ClientGO 阅读全文
posted @ 2013-07-31 09:53 上浅草涯 阅读(155) 评论(0) 推荐(0) 编辑
摘要: select client.clientname ,description,'client2'=casewhen client.Description IS NULL then client.clientnamewhen ltrim(rtrim(client.Description))='' then client.clientnameelseclient.clientname +' - '+ client.Descriptionend from T_CSC_ClientMaster as clientselect client.clientna 阅读全文
posted @ 2013-07-24 13:09 上浅草涯 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 许多时候我们在制作表单时需要限制文本框输入内容的类型,下面我们用正则表达式限制文本框只能输入数字、小数点、英文字母、汉字等各类代码。1.文本框只能输入数字代码(小数点也不能输入) <input onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">2.只能输入数字,能输小数点.<input onkeyup="if(isNaN(value))e 阅读全文
posted @ 2013-04-01 00:38 上浅草涯 阅读(229) 评论(0) 推荐(0) 编辑