Reputation: 76
Isn't it possible to select into two variables in a single select statement? Please help me get this simple syntax. id and date_start both are columns in the table data_set. The WHERE clause restricts the results to one row. Naturally, when I do this as two selects, one for each variable, it works.
select id into @id_data_set, date_start into @start_date from data_set
where name_table = 'debug_data_1';
ERROR 1327 (42000): Undeclared variable: date_start
Upvotes: 1
Views: 650