It can be done as follows :
SELECT * FROM `table_name` WHERE `request_id` IN ('value1','value2','value3','value4');
The benefit of using IN()
is that it can process data more faster than using OR
condition.
It can be done as follows :
SELECT * FROM `table_name` WHERE `request_id` IN ('value1','value2','value3','value4');
The benefit of using IN()
is that it can process data more faster than using OR
condition.
It’s as follows :
@coins = ("Quarter","Dime","Nickel"); pop(@coins);
O/p
@coins = Dollar Quarter Dime
It’s as follows :
@coins = ("Quarter","Dime","Nickel");
unshift(@coins, "Dollar");
O/p
3. @coins = Dollar Quarter Dime Nickel
It’s as follows :
@coins = ("Quarter","Dime","Nickel");
push(@coins, "Penny");
O/p
@coins = Quarter Dime Nickel Penny
It’s as follows :
function
listbox_selectall(listID, isSelect) {
var
listbox = document.getElementById(listID);
for
(
var
count=0; count < listbox.options.length; count++) {
listbox.options[count].selected = isSelect;
}
}
onclick="listbox_selectall(
'countryList'
,
true
)"
//select all the options
(or)
onclick="listbox_selectall(
'countryList'
,
false
)"
//deselect all the options
You must be logged in to post a comment.