Examples for

MySQL

22 examples, in learning order. Unqualified names resolve in the connection's database; RETURNING is off unless enabled.

Parameters
? or :name
RETURNING
Off unless enabled
Go code for
database/sql
Migrations
Built in (MySQL)
Driver
go-sql-driver/mysql
All about the MySQL dialect

Getting started

4 examples

Types and nullability

3 examples

Dynamic queries

5 examples

Shaping results

4 examples

Writing data

2 examples

Connections and transactions

1 examples

Migrations and seeds

1 examples

Engine features

2 examples
Show 31 not available for MySQL

Some ideas belong to other engines, and some need a feature MySQL does not have. Each one says why, and where to read it instead.