1
Somebody help me?
CREATE PROCEDURE 'sp_pessoas_insert' ( pessoa INT(11),
name VARCHAR(20),
lastname VARCHAR(55),
age CHARACTER(2),
genre boolean,
countrie CHARACTER(2),
state INT(11),
city INT(11),
income CHARACTER(8),
email VARCHAR(100),
password VARCHAR(100) ) BEGIN
INSERT INTO person VALUES(pessoa, name, lastname, age, genre, countrie, state, city, income, email, password)
SELECT * FROM person WHERE id = LAST_INSERT_ID();
END
I’ve been through everything and I can’t solve this problem by creating the trial, you can help me and explain if it’s possible what’s happening?!
These simple quotes in the Procedure name exist in SQL syntax?
– Woss
as @Andersoncarloswoss noted should be the problem, in
mysql
crase instead of single quotes for names– Ricardo Pontual
Thank you all for taking the time to help me. really the error was the simple quotes, I’m starting to mess with procedures and I’m also new here in the stack, I want to ask for help on how to evaluate your response.
– Rafael Rodrigues Alves teixeir