[請益] 有關mysql的語法
我在使用select的時候
where的判斷式可以這樣打
select * from table1
where (field1, field2) = ('value1' , 'value2')
但是在update的時候
我的mysql好像不讓我這樣做耶…
我的這樣打的:
update table
set (field1, field2) values ('lala', 'haha')
where (field3, field4) = ('123', '321')
請問有哪裡弄錯了嗎??
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.4.235
推
10/18 22:27, , 1F
10/18 22:27, 1F
推
10/20 13:09, , 2F
10/20 13:09, 2F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章