Chinaunix首页 | 论坛 | 博客
  • 博客访问: 297191
  • 博文数量: 42
  • 博客积分: 365
  • 博客等级: 一等列兵
  • 技术积分: 528
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-12 20:59
文章分类

全部博文(42)

文章存档

2016年(1)

2015年(2)

2014年(15)

2013年(10)

2012年(14)

我的朋友

分类: Mysql/postgreSQL

2013-07-10 15:50:54

INSERT INTO `enmysql`.`destoon_exhibit` (

`itemid` ,

`catid` ,

`areaid` ,

`level` ,

`title` ,

`style` ,

`fee` ,

`introduce` ,

`keyword` ,

`pptword` ,

`hits` ,

`thumb` ,

`username` ,

`addtime` ,

`fromtime` ,

`totime` ,

`city` ,

`address` ,

`postcode` ,

`homepage` ,

`hallname` ,

`sponsor` ,

`undertaker` ,

`truename` ,

`addr` ,

`telephone` ,

`mobile` ,

`fax` ,

`email` ,

`qq` ,

`msn` ,

`remark` ,

`editor` ,

`edittime` ,

`ip` ,

`template` ,

`status` ,

`linkurl` ,

`filepath` ,

`note` ,

`note_sp1` ,

`note_sp2` ,

`note_sp3` ,

`cat`

)

VALUES (

NULL , '0', '0', '0', '', '', '0', '', '', '', '0', '', '', '0', '0', '0', '', '', '', 'dffd', '', '', '', '', '', '', '', '', '', '', '', '', '', '0', '', '0', '0', '', '', '', '', '', '', '0'

);

UPDATE `enmysql`.`destoon_exhibit` SET `linkurl` = concat('show.php?itemid=',(select LAST_INSERT_ID())) where `itemid`=(select LAST_INSERT_ID());




step1:
UPDATE `destoonlzh`.`destoon_exhibit` SET `title` = concat('我是一个很不常见字符',title);
step2:
UPDATE `newcn`.`destoon_buy` SET `title` =replace(title,'我是一个很不常见字符vietnam','');
step3:
UPDATE `newcn`.`destoon_buy` SET `title` =replace(title,'我是一个很不常见字符','');
FINISH~


清除某表的数据
truncate table ****






阅读(581) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~