HestonJames
Programmer
Hello Guys,
I've got a query which looks something like:
Now what I want to do is insert a random value from a given list into the 'another' column, so lets say I have a list which looks as follows.
'bob', 'dave', 'george', 'me', 'you', 'michael jackson'
Each time I run the insert query I want it to select one of those names at ransom to use as the value to insert!
I'd appreciate your suggestions, does SQL have any nice built in functions to do this for me? like ListRand() or something like that?
Many thanks,
Heston
I've got a query which looks something like:
Code:
Insert Into MyTable (
Something,
Another,
OneMore
)
Values (
100,
[b]Name[/b],
300
)
Now what I want to do is insert a random value from a given list into the 'another' column, so lets say I have a list which looks as follows.
'bob', 'dave', 'george', 'me', 'you', 'michael jackson'
Each time I run the insert query I want it to select one of those names at ransom to use as the value to insert!
I'd appreciate your suggestions, does SQL have any nice built in functions to do this for me? like ListRand() or something like that?
Many thanks,
Heston