QUERY: SELECT * FROM stud_emp;
name |age|location |salary|manager|gpa|percent
-----+---+----------+------+-------+---+-------
-jeff | 23|(8,7.7) | 600|sharon |3.5| 0
-cim | 30|(10.5,4.7)| 400| |3.4| 0
-linda| 19|(0.9,6.1) | 100| |2.9| 0
+jeff | 23|(8,7.7) | 600|sharon |3.5|
+cim | 30|(10.5,4.7)| 400| |3.4|
+linda| 19|(0.9,6.1) | 100| |2.9|
(3 rows)
QUERY: SELECT count(*) FROM onek;
(63 rows)
QUERY: SELECT * FROM arrtest;
-a |b |c |d |e
------------+---------------+-------------+-----------------+-------------
-{1,2,3,4,5}|{{{0,0},{1,2}}}|{} |{} |
-{11,12,23} |{{3,4},{4,5}} |{"foobar"} |{{"elt1","elt2"}}|{"3.4","6.7"}
-{} |{3,4} |{"foo","bar"}|{"bar","foo"} |
+a |b |c |d |e
+-----------+---------------------+-------------+-----------------+-------------
+{1,2,3,4,5}|{{{0,0}},{{1,2}}} |{} |{} |
+{11,12,23} |{{{3},{4}},{{4},{5}}}|{"foobar"} |{{"elt1","elt2"}}|{"3.4","6.7"}
+{} |{{{3,4},{0,0}}} |{"foo","bar"}|{{"bar"},{"foo"}}|
(3 rows)
QUERY: SELECT arrtest.a[1],
a|b|c |d |e
--+-+------+----+-
1|0| | |
-11| |foobar|elt1|
- | |foo | |
+11|3|foobar|elt1|
+ |3|foo |bar |
(3 rows)
QUERY: SELECT arrtest.a[1:3],
FROM arrtest;
a |b |c |d
----------+---------------+-------------+-----------------
-{1,2,3} |{{{0,0},{1,2}}}| |
+{1,2,3} | | |
{11,12,23}| | |{{"elt1","elt2"}}
- | |{"foo","bar"}|
+ |{{{3,4},{0,0}}}|{"foo","bar"}|
(3 rows)
QUERY: SELECT array_dims(arrtest.b) AS x;
x
---------------
+[1:2][1:1][1:2]
+[1:2][1:2][1:1]
[1:1][1:2][1:2]
-[1:2][1:2]
-[1:2]
(3 rows)
QUERY: SELECT *
FROM arrtest;
a |b |c |d
----------+---------------+-------------+-----------------
-{1,2,3} |{{{0,0},{1,2}}}| |
+{1,2,3} | | |
{11,12,23}| | |{{"elt1","elt2"}}
- | |{"foo","bar"}|
+ |{{{3,4},{0,0}}}|{"foo","bar"}|
(3 rows)
=============== running error queries ... =================