上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页
摘要: 1.内连接 内连接通常称为连接,内连接发生在从两个表中选取记录且第一个表中某一列的值能在第二个表的相同列中找到 ,实际中,两个或者多个表连接是基于共同的字段。 一般这些共同字段都是主键 示例:select prod_id ,quantity_sold,cust_city,cust_state_province from sales ,customers where sales.cust_id = custmoers.cust_id and prod_id = 117;如果连接的表比较多,就很有可能混乱,所以有必要为你表的指定别名 来实现内联的查询 示例: select s.cust_id ,s 阅读全文
posted @ 2013-09-11 23:03 sulin 阅读(356) 评论(0) 推荐(0)
摘要: 1.字符串函数 lower(char)将整个字符串转换为小写 示例:select lower('DALiA') from dual; =>dalia replace(char ,str1,str2) 将char中出现的每个str1替换成str2 示例:select replace('Scott','S','Boy') from dual;=>boycott substr(char ,m ,n) 从char中第m 个字符开始去n个字符 示例: select substr('ABCDEF',4,2) fro 阅读全文
posted @ 2013-09-10 23:16 sulin 阅读(335) 评论(0) 推荐(0)
摘要: 1.update语句 update table set [column,column......] where column ='' 示例: update customers set cust_credit_limit = 20000 where cust_id = 2789;2.delete 语句 delete from table where 条件 示例; delete from customers where cust_state_province = 'QT';备注;truncate customers 也可以删除该表的所有记录,但是它在出错不允许回滚的 阅读全文
posted @ 2013-09-09 22:51 sulin 阅读(209) 评论(0) 推荐(0)
摘要: 1.数据库操纵语言(Data manipulation language )DML DML 是以任何select ,insert ,update 或 delete开头的sql 语句。 1.1 insert 示例:insert into customer value(1,'name') 或者insert into customer (id,name) values(2,'name2') 1.2seelect示例: select * from customer ; 备注: * 表示提取所用的列的数据 1.2.1 添加where 条件 示例:select prodId 阅读全文
posted @ 2013-09-08 23:25 sulin 阅读(297) 评论(0) 推荐(0)
摘要: 1.需要引用对应的命名空间System.Web.Services2.后台方法; 必须是static 约束 必须添加[WebMethod()] 属性示例: [System.Web.Services.WebMethod()] public static string GetString() { return "{name:'lin'}"; } 阅读全文
posted @ 2013-08-22 22:46 sulin 阅读(274) 评论(0) 推荐(0)
摘要: 1.引用对应log4net.dll2.创建对应的log4net.config 文件示例:<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> </configSections> < 阅读全文
posted @ 2013-05-14 18:29 sulin 阅读(384) 评论(0) 推荐(0)
摘要: 1.第一种方式 页面上添加meta标签 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /> <meta http-equiv="X-UA-Compatible" content="IE=7" />2.第二种就在web.config 设置 <system.webServer> <httpProtocol> <customHeaders> <clear /> <add n 阅读全文
posted @ 2013-03-26 10:41 sulin 阅读(215) 评论(0) 推荐(0)
摘要: 1.处理一个字符串的并用特定的字符分割获取的值declare @varstr nvarchar(200)='2,3,5,6'declare @strindex int declare @strlastindex int declare @strvalue nvarchar(13)while(LEN(@varstr)>0)beginset @strindex= charindex(',',@varstr) if(@strindex=0) begin set @strvalue=@varstr set @varstr='' end else b 阅读全文
posted @ 2013-02-21 10:48 sulin 阅读(246) 评论(0) 推荐(0)
摘要: 1.json 是一个比较好web 传送数据格式,jqgrid里面jsonreader 怎样解析json 数据jQuery("#gridid").jqGrid({... jsonReader :{root: "rows", //数据模型page: "page",//数据页码total: "total",//数据总页码records: "records",//数据总记录数repeatitems: true,//如果设为false,则jqGrid在解析json时,会根据name(colmodel 指定 阅读全文
posted @ 2013-01-26 13:44 sulin 阅读(10982) 评论(0) 推荐(0)
摘要: 1.colModel 属性说明: align: string 定义单元格对齐方式 有 left ,right,center ,默认值left cellattr: function 附加到当前单元格上的属性 这个方法有4个参数 rowId,val,rawobject,cm ,data 示例: function (the raw object of the data row){ "style='color:red'"; } classes: string 当前列添加样式 如果不止一个 可以这操作 classes:'class1,class2' , 阅读全文
posted @ 2013-01-23 23:56 sulin 阅读(1533) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页