science-ation/db/db.update.94.sql

5 lines
150 B
MySQL
Raw Normal View History

SELECT @id:=id FROM reports WHERE system_report_id='18';
UPDATE `reports_items` SET `field`='grade_str' WHERE `field`='grade' AND `reports_id`=@id;