50 lines
561 B
SQL
50 lines
561 B
SQL
INSERT OR ROLLBACK INTO race (
|
|
config_id,
|
|
seed,
|
|
distance_diff_max,
|
|
frame_count,
|
|
horse_1,
|
|
horse_2,
|
|
horse_3,
|
|
horse_4,
|
|
horse_5,
|
|
horse_6,
|
|
horse_7,
|
|
horse_8,
|
|
horse_9,
|
|
horse_10,
|
|
horse_11,
|
|
horse_12,
|
|
horse_13,
|
|
horse_14,
|
|
horse_15,
|
|
horse_16,
|
|
horse_17,
|
|
horse_18
|
|
)
|
|
VALUES (
|
|
$config_id,
|
|
$seed,
|
|
$distance_diff_max,
|
|
$frame_count,
|
|
$horse_1,
|
|
$horse_2,
|
|
$horse_3,
|
|
$horse_4,
|
|
$horse_5,
|
|
$horse_6,
|
|
$horse_7,
|
|
$horse_8,
|
|
$horse_9,
|
|
$horse_10,
|
|
$horse_11,
|
|
$horse_12,
|
|
$horse_13,
|
|
$horse_14,
|
|
$horse_15,
|
|
$horse_16,
|
|
$horse_17,
|
|
$horse_18
|
|
)
|
|
RETURNING id
|