
ISQL and Tools
order_info | CHAR | 200 |
order_weight | INT | 4 |
order_value | INT | 4 |
order_state | CHAR | 20 |
ISQL displays the order_info column, at 200 characters, with lots of blank space preceding the values:
ISQL> select order_info from orders where order_value < 1000000
ORDER_INFO
Solid Rods 5 in. diameter
1 record selected
You can improve formatting by using the character format string to limit the width of the dis- play:
ISQL> column ORDER_INFO format "A28" heading "Details"
ISQL> select order_info from orders where order_value < 1000000;
ORDER_INFO
Solid Rods 5 in. diameter 1 record selected
ISQL>
ISQL> select order_value from orders where order_value < 1000000;
ORDER_VALUE
110000
1 record selected
ISQL>
AMOUNT
$110,000.00
1 record selected
The following examples use the
ISQL> select sysdate from syscalctable;
SYSDATE
05/07/1998
ISQL> column sysdate format "Day" ISQL> select sysdate from syscalctable
SYSDATE
FairCom Corporation |