Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi ,
Am trying to get the .sql file as output for insert scripts from tmysqlinput as source, but i did not get any solution for this scenario.
how can i achieve for this method
Yes, i want insert scripts.also i have used tsystem component using by this command
"mysqldump -u talenduser -p db name table name > output.sql"
but am not getting the result ,getting error as
mysqldump: Couldn't find table: ">"
can u pls suggest me to resolve this error
mysqldump is a client utility, to be able to run this command you need to have it on your workstation / server.
you need to use the tSystem component and let it run the mysqldump command
the > output.sql is a piping to a file, suggest specifying destination too.
Next you use the tDBOutputBulk / tMySQLOutputBulk and use the generated file.
i have used the both ways using java row i gave like this
context.insert = "INSERT INTO CHECK_IN(CoworkerId,CoworkerFullName ) VALUES (" + row7.CoworkerId+ "," +row7.CoworkerFullName+ ")"; (in tjavarow)
tdbinput--->tjavarow
|
| subjob
tfixedflowinput--tmap--tfileoutputdelimited
tfixedflowinput - given context.insert as fixed in column1 and map to tfileoutputdelimited
here i get only one insert statement but it's not iterate the all records