Might be a silly question to ask but what data type should I setup a column so I can enter multiple values?
Example: I have two tables, one called Application_users
and the other Products
.
Application_Users
has an id
column.
What I want is to have a column in Products
which is called Application_Users_id
and I enter 1,2,3,4
The idea is if an Application_User_id
is say 3, they would only see products were the Products.Application_Users_ID
contains a 3.
So what data type do I use so I can enter values such as 1,2,3,4 in a column?
I have tried NVARCHAR
and INTEGER
but neither work (NVARCHAR
works but won't let me amend it e.g. add numbers).
Let me know what everyone thinks is the best approach here please.
Thanks John