mysql replace into 的使用

2011-07-12 20:57  2533人阅读  评论 (0)
Tags: msyql

看uchome代码的时候看到一个replace into语句很是喜欢,在这里写写他的语法。

REPLACE [LOW_PRIORITY | DELAYED]
[INTO] tbl_name [(col_name,...)]
VALUES ({expr | DEFAULT},…),(…),…

或:

REPLACE [LOW_PRIORITY | DELAYED]
[INTO] tbl_name
SET col_name={expr | DEFAULT}, …

或:

REPLACE [LOW_PRIORITY | DELAYED]
[INTO] tbl_name [(col_name,...)]
SELECT …
豫ICP备09035262号-1