subject

Which statement will set the value john to the first parameter of the preparedstatement below?
string sql = "insert into student (first, middle, last) values ? , ? )" ;
preparedstatement ps = conn. preparestaement(sql);

ps. setstring(0, "john");
ps. setstring(0, ‘john’);
ps. setstring(1, "john");
ps. setstring(1, ‘john’);
question 7

which statement is used to execute the query "select * from products" using the statement object stmt?

stmt. executeupdate("select * from products");
stmt. exectue("select * from products");
stmt. exectuequery("select * from products");
stmt. query("select * from products");
question 8

what statement needs to be included below to retrieve all rows from the invoices table with invoicetotal greater than 100?
string sql = "select invoicedate, invoicetotal "
+ "from invoices where invoicetotal > ? ";
preparedstatement ps = connection. preparestatement(sql);
//what goes here
resultset invoices = ps. executequery();

ps. setvalue(0, 100);
ps. setvalue(1, 100);
ps. setdouble(0, 100);
ps. setdouble(1, 100);
question 9

what must you make available to your application before you can use jdbc to connect to a database?

a database driver
a web server
a firewall
an odbc data source
question 10

a is a swing gui component that can be bound to a database to display the results of a query.

tablemodel
jtextfield
jtable
jquery

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:00
In the context of the box model, what is the difference between a margin and a padding? a. a padding lies outside a box border, while a margin lies inside it. b. a padding lies inside a box border, while a margin lies outside it. c. a padding can be adjusted independently, while a margin depends on the size of its box. d. a padding depends on the size of its box, while a margin can be adjusted independently.
Answers: 3
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
Answers: 3
question
Computers and Technology, 24.06.2019 12:40
Match the feature to the network architecture. expensive to set up useful for a small organization easy to track files has a central server inexpensive to set up difficult to track files useful for a large organization does not have a central server client- server network peer-to-peer network
Answers: 3
question
Computers and Technology, 24.06.2019 16:00
To fill (copy) a cell across or down, point to the of the cell and drag. top left corner top right corner bottom left corner bottom right corner
Answers: 3
You know the right answer?
Which statement will set the value john to the first parameter of the preparedstatement below?
Questions
question
Social Studies, 29.04.2021 01:00
question
Mathematics, 29.04.2021 01:00
question
Mathematics, 29.04.2021 01:00