初始化mysql表格,让自动增加ID字段数字恢复为0
truncate table 表名
判断字符串(string)中是否包含另一个字符串(subStr)locate(subStr,string) :函数返回subStr在string中出现的位置实际运用SELECT LOCAT...
in 或者out 参数 :需要设定长度,否则保存的时候会报错;参数和字段名重名的时候,为了区别字段名,需要在字段前面加入表名创建临时表CREATE TEMPORARY TABLE&...
select count(id),字段from 表名 group by字段 having count(字段)>1;...
SELECT * FROM **** WHERE trim(字段名) REGEXP '[^0-9]'=1...
update 表名 SET log_Content = REPLACE(log_Content,'"upload','"/upload')...
SELECT * FROM shop_count WHERE DATE(count_date)=current_date(); SELECT * FROM sho...