摘要: select语句中只能使用sql函数对字段进行操作(链接sql server),select 字段1 from 表1 where 字段1.IndexOf("云")=1;这条语句不对的原因是indexof()函数不是sql函数,改成sql对应的函数就可以了。left()是sql函数。select 字段1 from 表1 where charindex('云',字段1)=1;字符串函数对二进制数据、字符串和表达式执行不同的运算。此类函数作用于CHAR、VARCHAR、 BINARY、 和VARBINARY 数据类型以及可以隐式转换为CHAR 或VARCHAR的数 阅读全文
posted @ 2012-02-01 13:37 lieneces 阅读(355) 评论(0) 推荐(0) 编辑
摘要: BULK INSERT CSDN FROM 'D:\ipmsg.log' WITH (CODEPAGE='ANSI ',DATAFILETYPE='char',FIELDTERMINATOR='|' --如果文本用,号来分割字段内容的)create table CSDN( con varchar(8000)) 阅读全文
posted @ 2012-01-31 16:52 lieneces 阅读(266) 评论(0) 推荐(0) 编辑
摘要: /* 连接数 */select connectnum=count(distinct net_address)-1 from master..sysprocesses/* 返回一组有关计算机和有关 SQL Server 可用资源及其已占用资源的有用杂项信息 */select * from sys.dm_os_sys_info/* 从操作系统返回内存信息 */select * from sys.dm_os_sys_memory/* 返回有关调用进程的虚拟地址空间中的页范围的信息 */select * from sys.dm_os_virtual_address_dump/* 命令提供了SQL Se 阅读全文
posted @ 2012-01-30 17:45 lieneces 阅读(242) 评论(0) 推荐(0) 编辑
摘要: CREATE TABLE #tmptb(tbname sysname,tbrows int ,tbREserved varchar(10),tbData varchar(10) ,tbIndexSize varchar(10),tbUnUsed varchar(10))INSERT INTO #tmptb exec sp_MSForEachTable 'EXEC sp_spaceused ''?'''SELECT * from #tmptb --列出所有表的情况SELECT tbrows ,tbname FROM #tmptb WHERE tbr 阅读全文
posted @ 2012-01-30 11:42 lieneces 阅读(571) 评论(0) 推荐(0) 编辑
摘要: hidden 域的值 就是再 checkbox 值 前面加了个 tb 这样 我就可以 区分 。js 获取 id 只要前面加上tb 就行了 。 数据的 知识 要学会用到 js 里面 。不然 就要遍历了 。多麻烦你们说是吧 阅读全文
posted @ 2011-12-12 11:24 lieneces 阅读(147) 评论(0) 推荐(0) 编辑
摘要: if (typeof document.attachEvent!='undefined') { window.attachEvent('onload',init); document.attachEvent('onmousemove',moveMouse); document.attachEvent('onclick',checkMove); }else { window.addEventListener('load',init,false); document.addEventListener('mous 阅读全文
posted @ 2011-12-06 10:25 lieneces 阅读(1503) 评论(0) 推荐(0) 编辑
摘要: $.ajax({ type: 'Get', url: 'LoginAjax.aspx', data: 'text', success:function(result){alert(result)}, dataType: 'text' });忘了 。一定要记住!!!!! 阅读全文
posted @ 2011-11-28 20:48 lieneces 阅读(136) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > <!-- 引用时保留下原创作者喽,尊重任何一位原创作者,促进中国互联网进程 Editor:weasle http://www.hxcgw.com Email:weasle@163.com QQ:112011531 --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Con 阅读全文
posted @ 2011-11-28 11:29 lieneces 阅读(267) 评论(0) 推荐(0) 编辑
摘要: window.setInterval()功能:按照指定的周期(以毫秒计)来调用函数或计算表达式。语法:setInterval(code,millisec)解释:code:在定时时间到时要执行的JavaScript代码串。millisec:设定的定时时间,用毫秒数表示。返回值:定时器的ID值,可用于clearInterval()方法停止指定的定时器。注:setInterval()方法会不停地调用函数,直到用clearInterval()终止定时或窗口被关闭。window.clearInterval()功能:取消由setInterval()方法设置的定时器。语法:clearInterval(id_ 阅读全文
posted @ 2011-11-25 11:16 lieneces 阅读(53320) 评论(1) 推荐(3) 编辑
摘要: <metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><scripttype="text/javascript"charset="utf-8"> alert('欢迎您!'); </script> 阅读全文
posted @ 2011-11-17 10:42 lieneces 阅读(473) 评论(0) 推荐(0) 编辑