16.4 Java Database Connectivity Practical Part 3 | insert

preview_player
Показать описание
INSERT is used to adds new rows to a table. INSERT is used to populate a newly created table or to add a new row (or rows) to an already-existing table. In this case you must insert your fields in the order in which your table is defined.To insert more records, We can just re-use the 'Statement' object with our new values.

Follow on Facebook:

Subscribe to our other channel:
Telusko Hindi :

Subscribe to the channel and learn Programming in easy way.

Рекомендации по теме
Комментарии
Автор

wow... i love PreparedStatement way of insertion.... thanx sir for teaching....

yogeshbhatt
Автор

Thank you sir i was getting the same error and i had made the same mistake i too had pass my query in execute statement and finally you solved it thanks to you.

karanshah
Автор

Thanx a million.. your tutorials are helpful!!

health.upgradedbyscience.
Автор

I am very new to the java
and you are the best teacher ever for the java

letsgodevs
Автор

Hi Sir do you have any tutorial theory on importing CSV file data to MYSQL data base

Arjunganiga
Автор

Hello sir,
What if I want to save the resultset in Excel or CSV format could you please help here?

sushiltiwari
Автор

Hello sir. How can we insert data from a simple web application using jdbc connection?
can you make a video for insertion of data into database from web application. I have searched for many of videos in youtube, but I didnt find a proper result. Thank you.

konetivamshi
Автор

Please make a video on "How to execute a database transaction". Thanks.

BhatRoma
Автор

please do make a video on apache poi connection with excel sheet for java selenium

nitishjames
Автор

Thank
From Mars
.
.
.
.
.
.
.
.
.
.
-->>Aliens

chiragsharma
Автор

proper syntax to use string between query ' "+ String Name +" '

dipenbhuva
Автор

Sir, I am using Oracle SQL and IntelliJ,
sir, I also do like you done these videos for inserting data using (?, ?, ?, ?); like this.
only
class.forName change and Connection line URL
please tell me sir please, please...

DharmendraKrGupta-tslj
Автор

Hi Navin, how can we do combined add, update and print the result at once?

ashishpageni
Автор

@5:12 Why did you have to put username in single quotes since it is variable name and not a String literal?

jeandamourndatira
Автор

sir i need explain about callable statements

dhamodharan
Автор

Hello sir. i think the definition of TCL which you told was not correct. Please check and confirm. Thank you

sanjeevchaurasia
Автор

This is easy to connect to database using String url but there are projects where url is not used. Sometimes we have to login to sql server using Windows Authentication. So in that case how can a personwrite the code to run the sql script. In entire youtube and coder community there is no details present related to this concept.

sumitranjan
Автор

im getting errors ..can u please make a video for errors solving

wwouhft
Автор

It's DCL which have grant and revoke commands

subhasishhansda
Автор

Exception in thread "main" com.mysql.jdbc.Drivers
at
at
at
at
at Method)
at
at Dbdemo.main(Dbdemo.java:15)




these all are the run time errors

deveshmore