Table is 'read only'

后端 未结 10 1308
旧时难觅i
旧时难觅i 2020-11-29 12:07

When I want to execute an update query on my table I got an error saying:

1036 - Table data is read only.

10条回答
  •  猫巷女王i
    2020-11-29 12:29

    One other way to receive this error is to create your table with a "Like" statement and use as source a merged table. That way the newly create table is read-only and can't "receive" any new records.

    so

    CREATE TABLE ic.icdrs_kw37 LIKE ic.icdrs ... #<- a merged table.
    

    then:

    REPLACE INTO ic.icdrs_kw37 ...  # -> "Table is read-only"
    

    bug or feature?

提交回复
热议问题