From 1d6d02768317787ff021395b5d96562d790c4b20 Mon Sep 17 00:00:00 2001 From: Lin Ma Date: Thu, 27 Aug 2015 01:07:42 -0700 Subject: [PATCH] Practice checking --- README.md | 3 +++ Untitled.sql | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Untitled.sql diff --git a/README.md b/README.md index 0d362cf..fb667de 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ python ====== 学习Python时的代码 + +LearnPython +20150826 \ No newline at end of file diff --git a/Untitled.sql b/Untitled.sql new file mode 100644 index 0000000..f54c2d3 --- /dev/null +++ b/Untitled.sql @@ -0,0 +1,18 @@ +SELECT * FROM Customers +WHERE City LIKE '[bsp]%' + +SELECT Contactname, Address From test.Customers + +CREATE TABLE CustomersTemp +(CustomerID int(2) primary key not null AUTO_INCREMENT, +CustomerName character(36), +ContactName character(200), +Addresss character(47), +City character(26), +Postalcode character(14), +Country charater(11)); + +LOAD DATA LOCAL INFILE '/Users/linma/Documents/cw/W/MySQL/Customers.tsv' +into table test.CustomersTemp +fields terminated by '\t' +ignore 1 rows;