Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update In Routine quesiton 1

Status
Not open for further replies.

euntair

Programmer
Sep 13, 2007
53
US
The routine below updates the first record when multiple record numbers come through the parameter accounts. Is there a data type that pass comma delimited values like 1,2,3,4,5?


CREATE DEFINER=`root`@`localhost` PROCEDURE `set_admin_accounts_state_zero`(
accounts varchar(300)
)
BEGIN
update administrators set state = 0 where id in (accounts);
END
 
That was exactly what I was looking for. Thanks!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top