Дзюндзя ([info]syarzhuk) wrote,
@ 2007-04-07 15:22:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current mood:working
Current music:Moe Tucker - Dogs Under Stress
Entry tags:code, sql

Граблі
Наступілі на граблі, бо трэба чытаць весь TFM, а не толькі першы сказ
UPDATE (column)
Tests for an INSERT or UPDATE action to a specified column (ага, падумалі суворыя тэхаскія парні, вось гэтае UPDATE() нам і падкажа, ці ўстаўляюць значэньне ў поле) and is not used with DELETE operations. More than one column can be specified. Because the table name is specified in the ON clause, do not include the table name before the column name in an IF UPDATE clause. To test for an INSERT or UPDATE action for more than one column, specify a separate UPDATE(column) clause following the first one. Aле фіг вам, сказалі мелкасофтаўцы, бо IF UPDATE will return the TRUE value in INSERT actions because the columns have either explicit values or implicit (NULL) values inserted.




(Post a new comment)


[info]xpeh1
2007-04-07 09:08 pm UTC (link)
Триггеры - зло...

(Reply to this) (Thread)


[info]syarzhuk
2007-04-07 09:29 pm UTC (link)
Ведаю, а што зробіш? Я не DBA і не Data Architect, так, на шпацыр выйшаў...

(Reply to this) (Parent)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…