Jump to content

WHERE IN clause with multiple alpha numeric values


Jalz
 Share

This topic is 2839 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hey Guys,

 

I have a list of UUIDS all separated via a carriage return. I'm using a where IN clause in my execute SQL and understand that if I want to put my values in the IN then I need to remove the carriage returns and surround each value with a quote mark.

 

Does anyone already have a standard way of doing this or a custom function already available they can point me towards.

 

Thanks

Jalz

Link to comment
Share on other sites

Does anyone already have a standard way of doing this 

 

Try

ExecuteSQL ( "
  …
  WHERE someField IN ('" & Substitute ( listOfUUIDs ; ¶ ; "','" ) & "')
  " ; "" ; ""
)

Note the two singles quotes, just after the opening and before the closing parenthesis.

Link to comment
Share on other sites

This topic is 2839 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.