mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
show specific columns from devices table rather than *
This commit is contained in:
parent
c212c0e367
commit
b0e2975994
1 changed files with 1 additions and 1 deletions
|
@ -37,6 +37,6 @@ echo "SELECT connname, hid, devid, count(*), sum(msglen) "\
|
|||
"GROUP BY connname, hid, devid ORDER BY connname LIMIT $LIMIT;" \
|
||||
| psql xwgames
|
||||
|
||||
echo "SELECT * FROM devices WHERE id IN (select UNNEST(devids) FROM games $QUERY) ORDER BY id LIMIT $LIMIT;" \
|
||||
echo "SELECT id, model, osvers, mtime, array_length(devTypes, 1) as cnt, devTypes[1] as dTyp, devids[1] as devid FROM devices WHERE id IN (select UNNEST(devids) FROM games $QUERY) ORDER BY id LIMIT $LIMIT;" \
|
||||
| psql xwgames
|
||||
|
||||
|
|
Loading…
Reference in a new issue