UPDATE channelcountry,
appywproducts
SET channelcountry.ChannelName = appywproducts.YWNameCN
WHERE
channelcountry.ChannelCode = appywproducts.YWCode;
或者
UPDATE channelcountry a
SET Channe...
update tb_plo_artificialfactor b
set cprefactornum=(SELECT cfactornum from (SELECT * FROM tb_plo_artificialfactor) a WHERE a.cstarttime< b.cstarttime order by a.cstarttime desc LIMIT 0,1 ) ...
SET FOREIGN_KEY_CHECKS=0;-- ------------------------------ Table structure for t_userinfo-- ----------------------------DROP TABLE IF EXISTS `springcloud_userinfo`;CREATE TABLE `springcloud_userinfo` ...
INSERT INTO BaomingRelation
([BaomingID]
,[RelationNumber]
,[UserID]
,[Area])
SELECT BaomingID,NEWID(),OperUserID,'bj' from Baoming
where Area='bj'
...
可以用这个命令: show index from table_name;得到输出:+------------------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+----...
sql如下
select count(*) from information_schema.COLUMNS where TABLE_SCHEMA='kfhotline' and table_name='tb_user_info'
kfhotline是数据库名字 tb_user_info 是表名字 替换下就o...
UPDATE t_advs_order SET attribute1=(SELECT o.order_state FROM tk_zyt_scenery_order o WHERE o.order_id=`on`),attribute2=(SELECT o.order_state FROM tk_zyt_scenery_order o WHERE o.order_id=`on`)WHE...