use mytools;
DROP TABLE IF EXISTS japn2;

CREATE TABLE japn2
(   
   emp_id INT NOT NULL AUTO_INCREMENT,
   fname VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
   lname VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
   title VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
   PRIMARY KEY (emp_id)
);

INSERT INTO japn2 SET fname="ひでき", lname="日浦",title="しちお";
INSERT INTO japn2 SET fname="ももたろ", lname="つよい",title="かちょ";
INSERT INTO japn2 SET fname="オズワルド", lname="カmポ",title="悪ガキ";
INSERT INTO japn2 SET fname="東京", lname="日本",title="すごい！";

\! echo '=> All rows in table japn2:';
SELECT * FROM japn2;

\! echo '=> Rows whose lname contains カ:';
SELECT * FROM japn2 
WHERE lname LIKE '%カ%';

