SQL 语句:update 表名 set 字段名=replace(cast(字段名 as varchar(2000)),'需要被替换字符','用来替换的字符')where content like '%字符%'例: update os_article set content=replace(c...
分类:
数据库 时间:
2015-10-14 12:33:33
阅读次数:
207
MySQL乱码:用语句show variables like 'character%';来查看当前数据库的相关编码集。修改My.cnf文件增加[mysqld]character-set-server=utf8重启Mysql:+--------------------------+----------...
分类:
数据库 时间:
2015-10-14 12:23:35
阅读次数:
239
system?clear;??#清屏命令
show?variables?like?‘%xx%’;??#查看环境变量
set?global?xx=100;??#设定环境变量
分类:
数据库 时间:
2015-10-14 06:57:23
阅读次数:
143
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2015-10-13 01:34:13
阅读次数:
223
1、查询可以恢复的时间点? select?*?from?V$SQL?where?SQL_TEXT?like?‘%update?MAP_OPTCBL_POINT_70?set?shape%‘ 2、数据恢复到新建的表,根据时间戳 create?table?newTable?as?select?*?from?...
分类:
数据库 时间:
2015-10-12 19:35:27
阅读次数:
198
在5.6之前 是可以用 show variables like '%part%' 这个选项:have_partitioning | YES 来看的在5.6 中 上面的方式已经被抛弃,改用SHOW PLUGINS;查看 partition 是否处于 active 状态;加油!多看文档!
分类:
其他好文 时间:
2015-10-12 10:30:00
阅读次数:
151
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2015-10-12 08:08:22
阅读次数:
217
Part30Interfaces in c#We create interfaces using interface keyword. just like classes interfaces also contains properties, methods, delegates or event...
Part 57 Why should you override ToString Methodsometimes you can override ToString method like that:namepace Examplepublic class MainClass{ Customer ....
分类:
其他好文 时间:
2015-10-12 01:54:11
阅读次数:
125
在mysql中,每个命令之间都要留一点空格如果是这样,$query = "select * from books where " .$searchtype. "like'%" .$searchterm. "%'";那么print_r(),就会输出:select * from books where ...
分类:
数据库 时间:
2015-10-12 00:37:39
阅读次数:
175