select TABLE_NAME, TABLE_SCHEMA, Data_free from information_schema.TABLES where TABLE_SCHEMA NOT IN ('information_schema', 'mysql') and Data_Free >0;+...
分类:
数据库 时间:
2015-03-03 13:28:32
阅读次数:
359
1、在数据配置--显示设置增加TASK_REMARK字段2、excel配置数据源,需用到全局变量时,在where条件增加user_name=‘$填充单元格位置$‘or如:在D2单元格需填充user_name则:selectuser_id,user_code,user_namefromtuserwhereuser_name=‘$D2$‘oruser_id=
‘$G_USER‘
分类:
其他好文 时间:
2015-03-03 11:53:14
阅读次数:
130
一般模糊语句如下:
SELECT 字段 FROM 表 WHERE 某字段 Like 条件
其中关于条件,SQL提供了四种匹配模式:
1、%:表示任意0个或多个字符。可匹配任意类型和长度的字符,有些情况下若是中文,请使用两个百分号(%%)表示。
比如 SELECT * FROM [user] WHERE u_name LIKE '%三%'
将会把...
分类:
数据库 时间:
2015-03-03 11:50:38
阅读次数:
179
sql 解析字符串添加到临时表中 sql存储过程in 参数输入 解决方法把字符串解析 添加到 临时表中SELECT * into #临时表 FROM dbo.Func_SplitOneColumnTabel('001,gf', ',')select * from 表 where ID in (sel...
分类:
数据库 时间:
2015-03-03 11:23:29
阅读次数:
151
mysql mysql_connect($db_host, $db_user, $db_password); mysql_select_db($dn_name); $result = mysql_query("SELECT `name` FROM `users` WHERE `location` =...
分类:
数据库 时间:
2015-03-03 11:14:28
阅读次数:
166
大家都知道,java中JDBC中,有个预处理功能,这个功能一大优势就是能提高执行速度尤其是多次操作数据库的情况,再一个优势就是预防SQL注入,严格的说,应该是预防绝大多数的SQL注入。
用法就是如下边所示:
String sql="update cz_zj_directpayment dp"+
"set dp.projectid = ? where dp.payid= ?";
...
分类:
数据库 时间:
2015-03-03 10:01:12
阅读次数:
314
People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, where the first 2 digits are for Red, the middle 2 dig...
分类:
其他好文 时间:
2015-03-03 09:59:09
阅读次数:
150
使用如下SQL语句查询出表中外键约束名称:1 select name 2 from sys.foreign_key_columns f join sys.objects o on f.constraint_object_id=o.object_id 3 where f.parent_object.....
分类:
数据库 时间:
2015-03-03 09:46:13
阅读次数:
308
SQL2008一、安装注意事项:1.修改用户权限(在一个安装页面中有七八个)(改成net.)2.添加当前系统用户为账户二、主键,约束,索引三、增删改查;insert、delete、updateselect__*或者列名_____from 表where_______排序分组逐条核对,符合条件的显示出来...
分类:
数据库 时间:
2015-03-02 23:49:40
阅读次数:
246
本课重点: 1、写SELECT语句进行数据库查询 2、进行数学运算 3、处理空值 4、使用别名ALIASES 5、连接列 6、在SQL PLUS中编辑缓冲,修改SQL SCRIPTS 7、ORDER BY进行排序输出。 8、使用WHERE 字段。一、写SQL 命令: 不区分大小写。 SQL 语句用数...
分类:
数据库 时间:
2015-03-02 22:20:04
阅读次数:
284