I need to store a string of comma separated values.
'1,23,47' or '1' or '' (null)
What data type would work best for comma separated values?
Note: I am only asking which data type would be appropriate for this scenario.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depending on how big the string you expect world determine the size of varchar. If you have no idea how long the string would be you can just use TEXT data type.