-
-
Notifications
You must be signed in to change notification settings - Fork 2
INSERT
Oxford Harrison edited this page Nov 12, 2024
·
12 revisions
The INSERT
statement.
See also ➞
table.insert()
// (a): SQL syntax
const result = await client.query(
`INSERT TABLE public.users
(name, email)
VALUES ('Jane', 'jane@example.com')`
);
// (b): Object-based syntax
const result = await client.database('public').table('users').insert(
{ name: 'Jane', email: 'jane@example.com' }
);
See also ➞
Magic Paths