在使用sqlworkbench的MySQL中,如何創建表的過程以從文本文件獲取輸入值(僅前100行)並將其存儲在數據庫中?MySQL Store程序
例如:在文本中,像(12,abc,heg,258)這樣的值像100行。
請幫我這個。
我已經試過
DELIMITER $$
drop procedure if exists `proctable` $$
create definer =`root`@`localhost` procedure `proctable`(in C:\Documents and Settings\Sridevi\tablevalue.txt varchar(200))
begin
load data local infile C:\Documents and Settings\Sridevi\tablevalue.txt
into table test.testtbl
fields terminated by '|'
lines terminated by '\n'
end $$
DELIMITER ;
對小疑問執行該功能。如何找到我的數據庫。別生氣。我用命令show databases;並選擇一個,但它不工作。 – Benny