adspace
Answer Posted / Charu Singh
SQL (Structured Query Language) in Java refers to using SQL statements to communicate with a database from a Java application. This is typically done using the JDBC (Java Database Connectivity) API.nnFor example:n`nConnection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/mydatabase", "username", "password");nStatement stmt = conn.createStatement();nResultSet rs = stmt.executeQuery("SELECT * FROM MyTable");nwhile (rs.next()) {nt// Access data from the ResultSet}nconn.close();
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is collation? : Sql dba
Can we use distinct and group by together?
Can delete statement be rollbacked?
Do we need to rebuild index after truncate?
how to start mysql server? : Sql dba
What is the best sql course?
what is schema? : Sql dba
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
what are all the common sql function? : Sql dba
define sql insert statement ? : Sql dba
What is the current version of sql?
What is your daily office routine?
how to escape special characters in sql statements? : Sql dba
Can we rollback truncate?
Does group by remove duplicates?