SQL Error: ORA-00933: SQL command not properly ended

后端 未结 5 2153
鱼传尺愫
鱼传尺愫 2020-11-29 09:03

I am trying to update a record in oracle SQL developer by using Joins. Following is my query-

UPDATE system_info set field_value = \'NewValue\' 
FROM system_         


        
5条回答
  •  误落风尘
    2020-11-29 09:37

    Semicolon ; on the end of command had caused the same error on me.

    cmd.CommandText = "INSERT INTO U_USERS_TABLE (USERNAME, PASSWORD, FIRSTNAME, LASTNAME) VALUES ("
                    + "'" + txtUsername.Text + "',"
                    + "'" + txtPassword.Text + "',"
                    + "'" + txtFirstname.Text + "',"
                    + "'" + txtLastname.Text + "');"; <== Semicolon in "" is the cause.
                                                          Removing it will be fine.
    

    Hope it helps.

提交回复
热议问题