赞
踩
如果你想使用MySQL Workbench导出数据,可以按照以下步骤进行操作:
MySQL 导出数据
MySQL中你可以使用SELECT…INTO OUTFILE语句来简单的导出数据到文本文件上。
CREATE TABLE test_NO1( test_NO1_id INT NOT NULL AUTO_INCREMENT, test_NO1_title VARCHAR(100) NOT NULL, test_NO1_author VARCHAR(40) NOT NULL, test_NO1_date DATE, PRIMARY KEY ( test_NO1_id ) )ENGINE=InnoDB; drop table test_no1; INSERT INTO test_NO1 (test_NO1_title, test_NO1_author, test_NO1_date ) VALUES ("programb", "welcome to programb", NOW()); select * from test_NO1; INSERT INTO test_NO1 (test_NO1_title, test_NO1_author, test_NO1_date ) VALUES ("programb2", "welcome to programb2", NOW()); INSERT INTO test_NO1 (test_NO1_title, test_NO1_author, test_NO1_date ) VALUES ("programb3", "welcome to programb3", NOW()); SELECT * from test_NO1 WHERE test_NO1_title='programb2'; SELECT * from test_NO1; update test_NO1 SET test_NO1_title='programb100' WHERE test_NO1_id=1; SELECT * from test_NO1 where test_NO1_id=1; SELECT * from test_NO1; DELETE FROM test_NO1 WHERE test_NO1_id=1; SELECT * from test_NO1; SELECT * from test_NO1 WHERE test_NO1_title LIKE '%programb2'; INSERT INTO test_NO1 (test_NO1_title, test_NO1_author, test_NO1_date ) VALUES ("programb2", "welcome.to.programb2",
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。