How to add a where clause in a MySQL Insert statement?

前端 未结 8 978
刺人心
刺人心 2020-11-30 12:56

This doesn\'t work:

INSERT INTO users (username, password) VALUES (\"Jack\",\"123\") WHERE id=\'1\';

Any ideas how to narrow insertion to a

8条回答
  •  情深已故
    2020-11-30 13:32

    For Empty row how we can insert values on where clause

    Try this

    UPDATE table_name SET username="",password="" WHERE id =""
    

提交回复
热议问题