adplus-dvertising
frame-decoration

Question

What are the results of the following SQL commands if col is an integer column?
 1. SELECT * FROM mytbl WHERE num_col = '4';
 2. SELECT * FROM mytbl WHERE num_col = 4;

a.

same

b.

different

c.

1 is an error

d.

2 is an error

Posted under MySQL Database

Answer: (a).same

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What are the results of the following SQL commands if col is an integer column?

Similar Questions

Discover Related MCQs

Q. Which system variable tells the optimizer to skip certain plans based on estimates of the number of rows accessed for each table?

Q. Which system variable tells how far into the rest of each incomplete plan the optimizer should look to evaluate whether it should be expanded further?

Q. The optimizer_prune_level is set by default.

Q. Calculations involving numbers are faster than those involving string.

Q. To convert an int to string, the function is _________________

Q. To convert a string to an int, the function is _________________

Q. To maintain performance of tables having variable length rows, which statement is used?

Q. Which of these columns are faster?

Variable length, Fixed length

Q. Which of these take more space?

Variable length columns, Fixed length columns

Q. To minimize disk I/O, which of these should be chosen?

CHAR, VARCHAR

Q. Avoiding NULL in columns may make queries simpler.

Q. Which of these can be used to generate hash values?

Q. IP numbers can be represented as _________________

Q. Bulk loading is less efficient than single row loading.

Q. Loading is faster when a table has no indexes than when it is indexed.

Q. Which is more efficient?

LOAD DATA, INSERT

Q. Without LOCAL, LOAD DATA is _________________

Q. Which option turns on the –extended-insert?

Q. Which table option for MyISAM tables reduces index flushing?

Q. Which option repairs MyISAM tables automatically after they open?