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, 21.06.2019 19:30
Entering key dates from your course syllabi test and quiz dates, assignments due dates in your planner can you manage your schedule by allowing you to see commitments ahead of time.
Answers: 3
question
Computers and Technology, 22.06.2019 15:30
To increase sales, robert sends out a newsletter to his customers each month, letting them know about new products and ways in which to use them. in order to protect his customers' privacy, he uses this field when addressing his e-mail. attach bcc forward to
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
question
Computers and Technology, 24.06.2019 00:00
Consider the series where in this problem you must attempt to use the ratio test to decide whether the series converges. compute enter the numerical value of the limit l if it converges, inf if it diverges to infinity, minf if it diverges to negative infinity, or div if it diverges but not to infinity or negative infinity.
Answers: 1
You know the right answer?
Which statement will set the value john to the first parameter of the preparedstatement below?
Questions
question
Mathematics, 20.08.2020 21:01
Questions on the website: 13722367