I have two independent queries as:
SELECT COUNT(*) FROM USER;
and
SELECT COUNT(*) FROM POSTS;
for these result I have created a mysql script file named as total.sql:
USE matchstix;
SELECT COUNT(*) FROM USER;
SELECT COUNT(*) FROM POSTS;
when I ran this script at mysql shell then getting results as
mysql>source /home/total.sql;
Database changed
+-------+
|COUNT(*) |
+-------+
| 94122 |
+-------+
1 row in set (0.03 sec)
+----------+
| COUNT(*) |
+----------+
| 94007 |
+----------+
the question is here how can i get the result something like:
+----------+------------+
| COUNT(*) | COUNT(*) |
+----------+-------------
| 94007 | 94122 |
+----------+--------------
1 row in set (0.44 sec)
is it possible if yes then how ??