MySQL Forums
Forum List  »  Stored Procedures

Re: Stored procedure doesn't work correctly
Posted by: Peter Brawley
Date: March 03, 2017 11:06PM

Pay attention to error messages. Of this cmd ...

set @st2 = CONCAT_WS('', 'GRANT SELECT ON', ' ','\'',`%`,'\'','.*', ' ', 'TO', ' ', @eid) ;

MySQL says: "Unknown column '%' in 'field list'".

What problem is putting this code in an sproc meant to solve?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Stored procedure doesn't work correctly
625
March 03, 2017 11:06PM


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.