我在MYSQL 5.7.33中有一个存储过程,其中有一个select语句,我打印update语句并尝试执行该语句来更新表中的值。在Select语句中,我将得到多个update语句,如下所示Update Test.sample SET COL= 0 WHERE ID = 2 ;
Update Test.sample SET COL = 0 WHERE ID =
我需要一个If,然后,在mysql中查询,if exists( select * from data_table where user_id =1 and link_id = 1)then update data_table set is_view = 1 where user_id = 1 else insert into data_table...