This article will introduce to you the solution to the problem of "check the manual that" when running a SQL file. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.
![](https://img.php.cn/upload/article/202105/11/2021051117474955079.jpg)
![](https://img.php.cn/upload/article/000/000/062/657af430ba8c6947d26afda016e26311-0.png)
![](https://img.php.cn/upload/article/000/000/062/717eecdf163e74f8d479f360133652e8-1.png)
![](https://img.php.cn/upload/article/000/000/062/717eecdf163e74f8d479f360133652e8-2.png)
![](https://img.php.cn/upload/article/000/000/062/717eecdf163e74f8d479f360133652e8-3.png)
![](https://img.php.cn/upload/article/000/000/062/5b3b35efa47bd82d4148e74be2282b3d-4.png)
![](https://img.php.cn/upload/article/000/000/062/5b3b35efa47bd82d4148e74be2282b3d-5.png)
![](https://img.php.cn/upload/article/000/000/062/295f045c10ace4cad67d7e5b40d8b388-6.png)
![](https://img.php.cn/upload/article/000/000/062/295f045c10ace4cad67d7e5b40d8b388-7.png)
#I will use "MySQL workspace workspace8.0" later. Run the SQL file. If you encounter an error, there will be a red underline prompt. It is found: (There is a problem with the time of the SQL file)
![](https://img.php.cn/upload/article/000/000/062/295f045c10ace4cad67d7e5b40d8b388-8.png)
It is not the insert statement that is wrong, nor the create There is a problem with the creation, but there is a problem with the time type. Whether it is datetime or time, the Navicat premium tool dumps the structure of the data table, and the time will be followed by "(0)"!!!
![](https://img.php.cn/upload/article/000/000/062/397613f4b7f9033a9774ef5d313f050c-9.png)
Change:
Replace all datetime(0) with datetime or time(0) [As shown in the figure, manually modify in xx.sql]:
![](https://img.php.cn/upload/article/000/000/062/397613f4b7f9033a9774ef5d313f050c-10.png)
Related recommendations: "
mysql tutorial"
The above is the detailed content of Why does 'check the manual that' appear when MySQL runs a SQL file?. For more information, please follow other related articles on the PHP Chinese website!