8 lines
260 B
SQL
8 lines
260 B
SQL
-- name: addStudent :execlastid
|
|
insert into students (fname, lname, date_of_birth, email, gender, address) values (?, ?, ?, ?, ?, ?);
|
|
|
|
-- name: studentByID :one
|
|
SELECT * FROM students WHERE id = ?;
|
|
|
|
-- name: fetchStudents :many
|
|
SELECT * FROM students LIMIT 10; |