Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 169206

All versions of MySQL (not Microsoft SQL Server). Please also add a version-specific tag like mysql-5.7 if that is relevant to the question.

-2 votes
1 answer
31 views

Issue with query, likely foreign keys [closed]

I'm setting up 3 Mysql create table queries below. The 3rd one works, the first 2 fail and throw this message: The plugin generated 132 characters of unexpected output during activation. …
Sean D's user avatar
  • 129
1 vote
1 answer
578 views

Mysql multiline statement causes syntax error

wp_priceGrids (gridId) VALUES (NULL); SELECT MAX(gridId) FROM wp_priceGrids; "); Results in: WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL … I've checked against examples and I think what I have matches their formats owner@G700:~$ mysql --version mysql Ver 14.14 Distrib 5.7.25, for Linux (x86_64) using EditLine wrapper owner@G700:~$ php …
Sean D's user avatar
  • 129
-1 votes
1 answer
2k views

MySQL: Syntax error around foreign key assignment [closed]

The error is below Results Schema Error: Error: ER_PARSE_ERROR: 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 …
Sean D's user avatar
  • 129
0 votes
1 answer
78 views

MySQL: Can not add foreign key into create table statement

The queries below (assigned to php variables) seem to have an issue on the 2nd query, where I set the foreign key to the "couponId" column on the first table. My IDE lints "couponId" (inside the forei …
Sean D's user avatar
  • 129