已有MS SQL Server的脚本,里面的日期格式是DMY的。想修改下直接拿来给MySQL用。在MySQL中尝试修改系统变量 Date_Format,
SET Date_Format = '%d/%m/%y';运行以后报告错误:
Error Code: 1238. Variable 'date_format' is a read only variable.
Date_Format 和 Datetime_Format都不让修改。试验了下其他的系统变量,
SET GLOBAL connect_timeout = 10;
成功了,但Date_format 设置就报 read only,为什么?有没有人能解答下啊?谢谢!