Default comparison operand in SELECT WHERE condition
问题 I have a table CategoryColours , if a category is not found, it should return the colors from the default category "*". Example if the table contains these lines: Category Color * white * black 1 red 1 blue 1 green 1 black If I search the category "1", the query should get the 4 colors. If I search the category "2", which has no records in the table, the query should get the 2 colors from the category "*". Is it possible to use OpenSQL to get the exact list that I need in a single statement?