mysql
文章平均质量分 95
冰峰雪岭
如人饮水,冷暖自知。
展开
-
CentOS7 手动部署lnmp环境
步骤一:准备编译环境关闭防火墙。 运行systemctl status firewalld命令,查看当前防火墙的状态。 如果防火墙的状态参数是inactive,则防火墙为关闭状态。 如果防火墙的状态参数是active,则防火墙为开启状态。 关闭防火墙。如果防火墙为关闭状态可以忽略此步骤。 如果您想临时关闭防火墙,需要运行以下命令: systemctl stop firewalld 说明临时关闭防火墙后,如果Linux实例重启,则防火墙将会自动开启。 .原创 2021-12-19 11:32:31 · 2501 阅读 · 0 评论 -
You can't specify target table 'table_name' for update in FROM clause
连表查询后进行update|delete操作,会报错sql:delete from feed where id in ( select f.id from comment as c, feed as f where f.column1 =c.id);会报错:You can't specify target table 'feed' for update i原创 2016-04-08 11:42:35 · 424 阅读 · 0 评论 -
mysql复制数据表
CREATE TABLE newtable LIKE oldtable; INSERT newtable SELECT * FROM oldtable;原创 2016-08-08 17:14:46 · 283 阅读 · 0 评论 -
mysql根据身份证查询年龄,地址,性别
select IDNumber,IDName, case left(IDNumber,2)when '11' then '北京市'when '12' then '天津市'when '13' then '河北省'when '14' then '山西省'when '15' then '内蒙古自治区'when '21' then '辽宁省'when '22' then '转载 2017-01-19 16:29:49 · 1631 阅读 · 0 评论