Spider024

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 3 4 5 6 7 8 下一页

2013年3月28日

摘要: 读取数据都是用rs.open sql,conn,1,1 修改数据:rs.open sql,conn,1,3 删除数据:直接要conn.execute("delete * from new where id=1")这样的。 rs.open语法如下:rs.open source,activeconnection,cursortype,locktype source为sql语句,activeconnection为数据库教程连接,cursortype是游标,locktype是数据锁定类型. cursortype 常量 说明 adopenforwardonly(值为0) (默认值)打 阅读全文
posted @ 2013-03-28 15:16 Spider024 阅读(645) 评论(0) 推荐(0) 编辑

摘要: 在create table时经常会碰到这样的语句,例如:password nvarchar(10)collate chinese_prc_ci_as null,那它到底是什么意思呢?不妨看看下面:首先,collate是一个子句,可应用于数据库定义或列定义以定义排序规则,或应用于字符串表达式以应用排序规则投影。语法是collate collation_namecollation_name ::={windows_collation_name}|{sql_collation_name}参数collate_name是应用于表达式、列定义或数据库定义的排序规则的名称。collation_name 可以 阅读全文
posted @ 2013-03-28 15:10 Spider024 阅读(354) 评论(0) 推荐(0) 编辑

摘要: 客户端ip:Request.ServerVariables.Get("Remote_Addr").ToString();客户端主机名:Request.ServerVariables.Get("Remote_Host").ToString();客户端浏览器IE:Request.Browser.Browser;客户端浏览器 版本号:Request.Browser.MajorVersion;客户端操作系统:Request.Browser.Platform;服务器ip:Request.ServerVariables.Get("Local_Addr&qu 阅读全文
posted @ 2013-03-28 14:13 Spider024 阅读(388) 评论(0) 推荐(1) 编辑

2013年3月26日

摘要: 一般如果变量通过var声明,但是并未初始化的时候,变量的值为undefined,而未定义的变量则需要通过 "typeof 变量"的形式来判断,否则会发生错误。例如:if(!myVar01)alert("发生错误"); // 该代码直接发生异常,因为变量myVar01没有申明 if("undefined" == typeof myVar01)alert("发生错误"); // 这样写才不至于发生异常而: var myVar01; if(undefined == myVar01)alert("发生错误&quo 阅读全文
posted @ 2013-03-26 14:27 Spider024 阅读(964) 评论(1) 推荐(0) 编辑

2013年3月22日

摘要: 表格排序比tablesorter功能少 但灵活 可以根据实际需求做调整本来用tablesorter做需求 但改的太费劲了 自己做了一个<head>中添加<head> <title></title> <link rel="stylesheet" href="style.css" type="text/css" media="print, projection, screen" /> <script type="text/javascript& 阅读全文
posted @ 2013-03-22 14:52 Spider024 阅读(509) 评论(0) 推荐(0) 编辑

2013年3月21日

摘要: <meta http-equiv="X-UA-Compatible" content="IE=9" /> 阅读全文
posted @ 2013-03-21 16:57 Spider024 阅读(112) 评论(0) 推荐(0) 编辑

摘要: 纯随笔....--查看表的定义 sp_helpexec sp_help 't_users' --查看表中的数据 SELECT * from t_users --获取有关表的信息 SELECT * from sys.tables --获取有关表列的信息 SELECT * from sys.columns where object_id in (SELECT object_id from sys.tables)SELECT COLUMNPROPERTY( OBJECT_ID('t_zichan'),N'f_zcid','PRECISION&# 阅读全文
posted @ 2013-03-21 15:49 Spider024 阅读(231) 评论(0) 推荐(0) 编辑

摘要: SQL Server版语法为了方便说明,数据库使用SQL Server的示例数据库,Northwind和pubs,如果SQL Server中没有的话,可以按下面的方法安装1,下载SQL2000SampleDb.msi,下载地址是:http://www.microsoft.com/downloads/details.aspx?FamilyId=06616212-0356-46A0-8DA2-EEBC53A68034&displaylang=en2,安装后,到默认目录C:\SQL Server 2000 Sample Databases 有instnwnd.sql ,instpubs.sq 阅读全文
posted @ 2013-03-21 14:30 Spider024 阅读(361) 评论(0) 推荐(0) 编辑

摘要: 基本语法一.创建存储过程create procedure sp_name @[参数名] [类型],@[参数名] [类型]asbegin.........end以上格式还可以简写成:create proc sp_name@[参数名] [类型],@[参数名] [类型]asbegin.........end/*注:“sp_name”为需要创建的存储过程的名字,该名字不可以以阿拉伯数字开头*/二.调用存储过程1.基本语法:exec sp_name [参数名]三.删除存储过程1.基本语法:drop procedure sp_name2.注意事项(1)不能在一个存储过程中删除另一个存储过程,只能调用另一. 阅读全文
posted @ 2013-03-21 13:44 Spider024 阅读(152) 评论(0) 推荐(0) 编辑

摘要: public SqlConnection conn = new SqlConnection("..."); public SqlCommand com = new SqlCommand(); public SqlDataAdapter adpt = new SqlDataAdapter(); public DataSet set = new DataSet(); public DataTable dtb = new DataTable(); //insert,update,delect语句 public int pro0() { com.Connection = conn; 阅读全文
posted @ 2013-03-21 13:35 Spider024 阅读(897) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 下一页