|
условие where на поле типа массив
|
|||
---|---|---|---|
#18+
как сделать условие where на поле типа массив, если нужно найти те строки, в которых в этом поле в массиве содержится определенное (одно скалярное) значение ? ... |
|||
:
Нравится:
Не нравится:
|
|||
04.07.2003, 11:13 |
|
условие where на поле типа массив
|
|||
---|---|---|---|
#18+
Postgres 7.3 User's Guide 5.12. Arrays ..... SELECT * FROM sal_emp WHERE pay_by_quarter[1:4] *= 10000; To search the entire array (not just specified columns), you could use: SELECT * FROM sal_emp WHERE pay_by_quarter *= 10000; In addition, you could find rows where the array had all values equal to 10 000 with: SELECT * FROM sal_emp WHERE pay_by_quarter **= 10000; ... |
|||
:
Нравится:
Не нравится:
|
|||
09.07.2003, 10:12 |
|
|
start [/forum/topic.php?fid=53&fpage=365&tid=2008163]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
27ms |
get topic data: |
12ms |
get forum data: |
2ms |
get page messages: |
35ms |
get tp. blocked users: |
2ms |
others: | 296ms |
total: | 402ms |
0 / 0 |