Syntax

SQL Insert a Row Syntax

In SQL, insert a row: adds a new row to a table — INSERT INTO users (name, email) VALUES ('Ada', 'ada@example.com');

Quick Answer

Syntax
INSERT INTO users (name, email) VALUES ('Ada', 'ada@example.com');
SQLSyntax

Insert a Row

Code example
INSERT INTO users (name, email) VALUES ('Ada', 'ada@example.com');

Adds a new row to a table.

Learn More

How to insert a row in SQL

  1. Open your SQL file or editor.
  2. Copy the example, then replace its sample names and values for your code.

SQL Insert a Row Syntax

Use INSERT INTO users (name, email) VALUES ('Ada', 'ada@example.com');.

Related Syntax References

Frequently asked questions

What is the SQL syntax for insert a row?

Use this pattern: INSERT INTO users (name, email) VALUES ('Ada', 'ada@example.com');

Can I copy this SQL code example?

Yes. Use Copy code and adapt the example to your program.

Is this SQL syntax different on Mac or Windows?

No. The language syntax is the same across operating systems.

Official source · How we verify