1
Answer

Insert data to sql table from JAVA

I want to insert a data from java code to sql table.I created my internal db using visual studio 2013 .my table name is "Table1" and it has only one column "Name"
 
  1. Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\350154\Documents\useractivity.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True  
  1. Table name is  "Table1"  
table has only one column Name.I wish to insert a name lokesh into the db.please help me to do this exercise. 
   

Answers (1)

0
Photo of Gokhul Varman
NA 10.7k 9.4k 7y
Hi,it is a hideous process and i know to insert it for full explanation refer the given link below:https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=9&cad=rja&uact=8&ved=0ahUKEwjsrozJiaXVAhUBkJQKHdkfAb8QFghdMAg&url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F11904314%2Finsert-data-into-mysql-table-with-java&usg=AFQjCNFOVDmc_nVt2WgT9NPJRka85d91sg