hi,
i wrote a servlet which accepts two variable num(int) and nam(string) from an html form.now i want to write that data into the postgresql data.could some body show how i could write such a code.am fairly new to servlet programming...
regardshttp://www.webdeveloper.com/forum/newthread.php?s=&action=newthread&forumid=31#
you'd need to learn SQL for such matters,
Here is a plain simple insert statement
INSERT INTO table_name (ColumnName1,ColumnName2) VALUES(num,"'"+name+"'");
Now the above statement should do what you are asking,make sure that columnName1 etc are replaced by the column names in the table.
If you don't know any SQL then you first need to get a book or read some tutorials on line, google usualy is a life saver.
Bookmarks