
数据库
iteye_4878
这个作者很懒,什么都没留下…
展开
-
DB2 oralce mysql 取前十条记录对比
Db2 例子 Sql代码 create table mynumber(id int,name varchar(10)) insert into mynumber values(1,'no1') insert into mynumber values(2,'no2') insert into mynumber values(3,'no3') insert into...原创 2008-09-05 09:29:46 · 122 阅读 · 0 评论 -
mysql笔记
1.replace()函数Sql代码 SELECT REPLACE('www.mysql.com', 'w', 'Ww'); 结果将显示'WwWwWw.mysql.com' Sql代码 update user set createtime=replace(createtime,'20080903','20080911'); 此语句可将user表中的createtime字段为2...2008-10-13 16:23:32 · 109 阅读 · 0 评论 -
MYSQL中删除重复记录的方法
在实际应用中,很可能会碰到一些需要删除某些字段的重复记录,我现在把我能想到的写下来,望高手们补充。 1、具体实现如下:Table Create Table ------------ --------------------------------------------------------us...原创 2008-11-11 11:38:46 · 104 阅读 · 0 评论 -
Informix联表更新
update table_a set apname=(select max(name) from person where id=table_a.apid) where apid in(select id from person) and (apname='' or apname is null);原创 2011-02-25 09:55:03 · 602 阅读 · 0 评论 -
MYSQL中在select时对NULL值的发现
MYSQL中,在select时对两个同为NULL值的字段竟然不匹配。记录一下。 [code="java"] drop table if exists test1 ; create table test1 ( id int (11), name char(20) )ENGINE=MyISAM DEFAULT CHARSET=utf8 ; drop table if...原创 2012-06-06 12:00:55 · 284 阅读 · 0 评论