MySQL错误代码:1064.您的SQL语法有错误 [英] MySQL Error Code: 1064. You have an error in your SQL syntax

查看:1300
本文介绍了MySQL错误代码:1064.您的SQL语法有错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

真的,可能出什么问题了!它没有变得更简单-整个查询:

Really, what could possibly be wrong?! It does not get any more simple - the entire query:

line 1: use foo
line 2: 
line 3: select * from test_table_1;

错误代码:

  1. 您的SQL语法有误;检查相应的手册 到您的MySQL服务器版本以获取正确的语法,以在以下位置的"select * from test_table_1"附近使用 第3行0.002秒
  1. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select * from test_table_1' at line 3 0.002 sec

行号仅供参考-查询窗口中实际上没有.

我正在尝试在MySQLWorkbench中运行此极其简单的查询,并引发语法错误.

I'm trying to run this extremely simple query in MySQLWorkbench and it's throwing a syntax error.

推荐答案

尝试添加分号:

use foo;

这篇关于MySQL错误代码:1064.您的SQL语法有错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆