update
This commit is contained in:
parent
d83a4a4606
commit
02d3613918
|
@ -1,23 +0,0 @@
|
|||
# 更新appconfig
|
||||
update `Ele_Config` set `status` = 0 where eleScene = 'indexhoticon' and eleId=2619
|
||||
|
||||
# 删除
|
||||
delete from Ele_Scene where id=38
|
||||
|
||||
# 删除某个场景的数据
|
||||
delete from `Ele_Content_Config` where eleId in (select eleId from Ele_Config where `eleScene` = 'testop2');
|
||||
delete from Ele_Config where `eleScene` = 'testop2';
|
||||
|
||||
# 按月统计上线量
|
||||
select month(`createTime`), count(*) from `Ele_Config_Package` where year(createTime) = 2015 group by month(createTime)
|
||||
|
||||
# 修改字段scene的长度,有以下两种方式
|
||||
ALTER TABLE `Ele_Scene_Lock` CHANGE COLUMN `scene` `scene` VARCHAR(128);
|
||||
|
||||
ALTER TABLE `Ele_Scene_Lock` MODIFY `scene` VARCHAR(128);
|
||||
|
||||
# 两个表通过id关联
|
||||
select * from `Ele_Content_Config` where eleId in (select eleId from Ele_Config where `eleScene` = 'appconfigtool');
|
||||
|
||||
# 删除UNIQUE KEY
|
||||
alter table tablename drop index key;
|
Loading…
Reference in New Issue