configure_backup/sql/appkit.sql

24 lines
870 B
SQL

# 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;