About
Pricing
Community
Teams
Start Free Trial
Log in
hankknight
asked on
5/9/2013
MySQL: Randomly Return 1 or -1
This randomly returns 1 or 0.
SELECT FLOOR(RAND()*2)
Select all
Open in new window
I want it to randomly select 1 or -1
MySQL Server
1
1
Last Comment
Robert Schutt
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Robert Schutt
5/9/2013
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61