I am writing a java aplication and i am using java gui forms I need help with inserting data into mysql database. I can get the data using getText() and statement.executeUpdate is the one Iam trying to use to insert However i dont know the how the insert query is writen in the statement the selct works fine i.e s.executeUpdate("SELECT * FROM tablename); or using Query instead of Update please help its a college project