我的代碼是MySQL的INSERT失敗
connect 'jdbc:derby:sampleclient';
set schema SYMMETRIC;
insert into "sale_transaction" ("tran_id", "store", "workstation", "day", "seq") values (1000, '1', '3', '2007-11-01', 100);
insert into "sale_return_line_item"("tran_id", "item_id"," price", "quantity") values (1000, 110000055, 0.65, 1);
select * from "sale_transaction";
select * from "sale_return_line_item";
我嘗試插入來自德比即IM數據複製數據到MySQL,但是當我在下面即時得到錯誤的命令輸入如下所示,推derby2mysql是文件,其中包含代碼
C:\symmetric-ds-3.0.1-server\symmetric-ds-3.0.1\samples>sh ij.sh push-derby2my
l.sql
ij version 10.5
ij> connect 'jdbc:derby:sampleclient';
ij> set schema SYMMETRIC;
0 rows inserted/updated/deleted
ij> insert into "sale_transaction" ("tran_id", "store", "workstation", "day",
eq") values (1000, '1', '3', '2007-11-01', 100);
ERROR 42X51: The class 'org.jumpmind.symmetric.db.derby.DerbyFunctions' does n
exist or is inaccessible. This can happen if the class is not public.
ERROR XJ001: Java exception: 'org.jumpmind.symmetric.db.derby.DerbyFunctions:
va.lang.ClassNotFoundException'.
ij> insert into "sale_return_line_item"("tran_id", "item_id"," price", "quanti
") values (1000, 110000055, 0.65, 1);
ERROR 42X14: ' price' is not a column in table or VTI 'SYMMETRIC.sale_return_l
e_item'.
ij> select * from "sale_transaction";
tran_id |store|wo&|day |seq
--------------------------------------------
0 rows selected
ij> select * from "sale_return_line_item";
tran_id |item_id |price |quantity |returned_q&
------------------------------------------------------------
您是否可以設置問題的格式以使代碼更易於閱讀?並給出一個適當的標題... – 2012-07-05 15:19:01
1)你應該標題你的問題與你的問題相關的東西。 2)你想做什麼?你有什麼嘗試?除此之外,我在這裏沒有看到任何問題,「錯誤請幫助」。 – Samuel 2012-07-05 15:19:21