简体   繁体   中英

UPDATE TABLE SQL Missing expression error

UPDATE factorial
    SET factorial.SQUARE = factorial.num**2, factorial.ROOT = SQRT(factorial.num);

Error:

  1. 00000 - "missing expression"

Why doesn't this work?

Remove the table prefixes and the extra *.

UPDATE factorial SET SQUARE = num*2, ROOT = SQRT(num);

Careful with updates without a where clause, as they will update all the records from your table.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM