首次使用mysql导出时,报错
The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
出错原因:没有设置导出的路径
show variables like '%secure%';
解决方法:
在my.ini中增加配置
secure-file-priv="D:/MySQL Server 5.5/"
secure_auth=ON
重启mysql
复制一张表,使源表中的一个值增加10
必须使用别名才行
create table user1
select id,name,pass,incre from
(
select id,name,pass,incre+10 incre from user ) u