query_init:
	SET AUTOCOMMIT=OFF ; START TRANSACTION ;

query:
	START TRANSACTION ; body ; ROLLBACK ;

body:
	insert_update | update_one ;

update_one:
	UPDATE _table SET `int_key` = `int_key` - 40 , `int` = `int` + 40 where_cond ;

where_cond:
	|
	WHERE `pk` = value |
	WHERE `pk` > value ORDER BY `pk` ;

insert_update:
	INSERT INTO _table ( `pk` , `int_key` , `int` ) VALUES ( NULL, 70 , 80 ) ; UPDATE _table SET `int_key` = `int_key` - 80 , `int` = `int` - 70 WHERE `pk` = _digit ;

value:
	_digit;

half_digit:
	1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 ;

even_odd:
	odd , even | even , odd ;

odd:
	1 | 3 | 5 | 7 | 9 ;

even:
	2 | 4 | 6 | 8 ;

small:
	1 | 2 | 3 | 4 ;

big:
	5 | 6 | 7 | 8 | 9 ;

_digit:
	1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 ;
