Grrr....I tried the above,
String filename = "test1,test2,test3";
String patternStr="\\,";
String[] fields = filename.split(patternStr);
It comes up with a java error of:
"The method split(java.lang.String) is undefined for the type java.lang.String"
What am I...
For DB2 7.2:
Create the Group in NT
Add the group to the DB2 databse:
db2 groupadd groupname
Grant on the group:
db2 grant update on table schema.tablename to group groupname
What about putting your sql in a file and
running the file as such:
db2 -tvf filename.sql -r results.txt >>logname.txt
If this is on Windows, it can be put into a batch file..let me know if you need
help with this.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.