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
1356
June 12, 2020 12:47AM
626
June 12, 2020 12:52AM
499
June 12, 2020 03:01AM
512
June 12, 2020 11:17AM
510
June 14, 2020 01:39AM
397
June 14, 2020 10:53AM
492
June 15, 2020 06:13AM
Re: Mysql 8 stored procedure
558
June 15, 2020 12:29PM
521
June 15, 2020 12:46PM


Sorry, you can't reply to this topic. It has been closed.

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.