writer:mySQL ,delete records, add records

More
2 years 4 months ago - 2 years 4 months ago #23247 by prashant
Hi,
In Transformation Type : Delete Records is supposed to 
1. Delete all records only? 
2  Delete all records mentioned in transformation , but I need to provide the primary key/update key (if yes where to enter this)
 


I tried using user_sql but get syntax error
#42000You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'insert into `vg_items` (`id`,`OurRef`,`Item` ) values (NULL,NULL,NULL  )' at line 2



 
I tried using Delete FROM , I still got error
#42000You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'insert into `vg_items` (`id`,`OurRef`,`Item` ) values (NULL,NULL,NULL  )' at line 2
Last edit: 2 years 4 months ago by prashant.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #23250 by admin

In Transformation Type : Delete Records is supposed to 
1. Delete all records only? 
2  Delete all records mentioned in transformation , but I need to provide the primary key/update key (if yes where to enter this)


Delete all records mentioned in transformation and you have to provide the primary key/update key

Please read the following article:
www.etl-tools.com/wiki/advanced-etl-proc...pdatedelete-records/
and that one
www.etl-tools.com/wiki/advanced-etl-proc...-targets/sql-script/


 

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago - 2 years 4 months ago #23260 by prashant
Question
insert into vg_items (`id`,`OurRef`,`Item` ) values (:F1,:F2,:F3  )
F1,F2 are the sequence in which writer is getting values FROM TRANSFORMER and this is correct ?
-
----
in mean while I get this error , I get this consistently when I try to copy from sql window
 
Last edit: 2 years 4 months ago by prashant.
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #23268 by admin
I have seen this problem in the past and not sure it is actually related to our software

Usually restarting the app works

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #23274 by prashant
Right as always , restart ELT solves this . 

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #23277 by prashant

 Question
insert into vg_items (`id`,`OurRef`,`Item` ) values (:F1,:F2,:F3  )
F1,F2 are the sequence in which writer is getting values FROM TRANSFORMER and this is correct ?
 

Is the above correct? 

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save