1

I am running a mysql database on an RDS instance.

My table schema is:

Table: users, Columns:

_id - int(11) AI PK
username - varchar(50) UNIQUE
email - varchar(100) UNIQUE

Im then using the following SQL statement to attempt to enter a new record

INSERT INTO usrdb.users (username, email)
VALUES ("admin", "[email protected]")

This statement just times out (30 seconds) repeatedly.

I know from experience that a simple insert statement shouldn't take anywhere near this length of time.

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
mwild
  • 1,483
  • 7
  • 21
  • 41

2 Answers2

2

Gotta change the double quotes to single quotes :) https://www.tutorialspoint.com/sql/sql-insert-query.htm

Dominic Mazur
  • 46
  • 1
  • 7
0

This query example should work :

 INSERT INTO `table`(`col1`, `col2`) VALUES ('varchar','varchar')

Check if there is a duplicate Exception raised.

Khaled Ouertani
  • 316
  • 2
  • 13