MySQL Forums
Forum List  »  Stored Procedures

Re: Mysql 8 stored procedure
Posted by: Peter Brawley
Date: June 15, 2020 12:29PM

Quote

Put this command into an execute window!
CREATE TABLE zozo0615.proba (
onefield bigint NOT NULL AUTO_INCREMENT,
twofield int NOT NULL DEFAULT '0',
PRIMARY KEY (onefield)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=UTF8 SELECT "" AS threefield SELECT "" AS three

You will get a table with 3 fields because of a semicolon is missing between two command .

I do not find that on 5.6 or 8.0. Both respond with ...

ERROR 1064 (42000): 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 "" AS three' at line 5

Options: ReplyQuote


Subject
Views
Written By
Posted
469
June 12, 2020 12:47AM
194
June 12, 2020 12:52AM
106
June 12, 2020 03:01AM
129
June 12, 2020 11:17AM
105
June 14, 2020 01:39AM
85
June 14, 2020 10:53AM
89
June 15, 2020 06:13AM
Re: Mysql 8 stored procedure
108
June 15, 2020 12:29PM
130
June 15, 2020 12:46PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.