mysql - how can i search having search key of multiple values from the column of a table containing multiple values -
i want create mysql search can take multiple values dropdown(multiple) , search , match them in 1 column containing multiple values.
sample :-
column containing multiple values (in row)= abc pqr xyz
and multiple dropdown menu containing
abc xyz pqr def
user can select these values in order
so problem how can create search search key should match of values in column.
first of there no "drop downs" in mysql.
mysql database, , drop down user interface item.
in order search database multiple items can this:
select * mytable mycolumn = 'value1' or mycolumn = 'value2'
or can way, typically slower:
select * mytable mycolumn in ('value1','value2','value3')
as far creating drop down, topic question. doing on webpage or application? language? question open ended.
Comments
Post a Comment