• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inserting data into database

 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using HTML as a front end with java. My html form has two fields, Name, and Id. But, in database i have created 3 columns, Name,Id and Username. Username should have the concatenated value of Name,and Id. I have to concatenate them in java class. How to do that?

Suppose Name entered is 'ONE', and ID,'100', then username should be 'ONE100'. Will concat() of String class will work for this?
 
santosh dhulipala
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am sorry i mis understood your question
 
santosh dhulipala
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where do you want to concatenate is it at Database while inserting into table or from database while inserting into html
 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic