-
Notifications
You must be signed in to change notification settings - Fork 4
/
buffers.sql
62 lines (34 loc) · 1.16 KB
/
buffers.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
SET foo = "bar";
SET @foo = 123;
SET @@foo = "bar";
SET time_zone = '-8:00';
/*!40101 SET NAMES utf8 */;
select @last_id := id from civicrm_contact;
select @lastID2:=id From civicrm_contact;
create temporary table foo;
CREATE TEMPORARY TABLE foo (whiz bang);
CREATE TEMPORARY TABLE IF NOT EXISTS foo (whiz bang);
CREATE TEMPORARY TABLE IF NOT EXISTS foo (whiz bang);
CREATE
TEMPORARY
TABLE
IF NOT
EXISTS
foo (whiz bang);
DROP TEMPORARY TABLE foo;
drop temporary table if exists foo;
Select * FROM hello_world where `name` = "foo" AND id in (select @bar := id FROM `other_ods`);
SELECT id, data INTO @x, @y FROM test.t1 LIMIT 1;
INSERT IGNORE INTO civicrm_tmp_e_foobar (col1, col2) values (1, 2);
INSERT IGNORE INTO `civicrm_tmp_e_foobar` (col1, col2) values (1, 2);
INSERT INTO civicrm_tmp_e_foobar (col1, col2) values (1, 2);
UPDATE civicrm_tmp_e_foobar SET foo = bar;
UPDATE `civicrm_tmp_e_foobar` SET foo = bar;
UPDATE `civicrm_tmp_e_foo`, civicrm_tmp_e_bar SET foo = bar;
DELETE FROM civicrm_tmp_e_foobar;
DELETE FROM `civicrm_tmp_e_foobar` WHERE foo = bar;
BEGIN;
START TRANSACTION;
BEGIN WORK;
START TRANSACTION WITH CONSISTENT SNAPSHOT;
savepoint foo;