Format SQL Table data as Text Table

前端 未结 2 1794
粉色の甜心
粉色の甜心 2020-12-11 13:13

I have a result from Oracle database as below:

1   Chi Phí Lương   FA_Phan_Bo_Chi_Phi_Luong    8   JOHN    8   2015    (BLOB)  FA_Phan_Bo_Chi_Phi_Luong_Final         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-11 13:52

    Your text sql result:

    +---+------------------------------+-----------------------------+---+------+---+------+--------+---------------------------------------+-----------+---------------+
    | 1 | Chi Phí Lương                | FA_Phan_Bo_Chi_Phi_Luong    | 8 | JOHN | 8 | 2015 | (BLOB) | FA_Phan_Bo_Chi_Phi_Luong_Final.csv    | 09-NOV-15 | Đã Hoàn Thành |
    +---+------------------------------+-----------------------------+---+------+---+------+--------+---------------------------------------+-----------+---------------+
    | 2 | Tổng Hợp TimeSheet Nhân Viên | FA_Tong_Hop_Timesheet       | 8 | JOHN | 8 | 2015 | (BLOB) | FA_Tong_Hop_Timesheet_COM_Final.csv   | 09-NOV-15 | Đã Hoàn Thành |
    +---+------------------------------+-----------------------------+---+------+---+------+--------+---------------------------------------+-----------+---------------+
    | 3 | Tổng Hợp Doanh Thu           | FA_Tong_Hop_Doanh_Thu       | 8 | JOHN | 8 | 2015 | (BLOB) | FA_Tong_Hop_Doanh_Thu_Final.csv       | 09-NOV-15 | Đã Hoàn Thành |
    +---+------------------------------+-----------------------------+---+------+---+------+--------+---------------------------------------+-----------+---------------+
    | 4 | Chi Phí Hoạt Động Công Ty    | FA_CP_Hoat_Dong             | 8 | JOHN | 8 | 2015 | (BLOB) | FA_CP_Hoat_Dong_Final.csv             | 09-NOV-15 | Đã Hoàn Thành |
    +---+------------------------------+-----------------------------+---+------+---+------+--------+---------------------------------------+-----------+---------------+
    | 5 | Khấu Hao Máy Móc Thiết Bị    | FA_CP_Khau_Hao_Phan_Bo_MMTB | 8 | JOHN | 8 | 2015 | (BLOB) | FA_CP_Khau_Hao_Phan_Bo_MMTB_Final.csv | 09-NOV-15 | Đã Hoàn Thành |
    +---+------------------------------+-----------------------------+---+------+---+------+--------+---------------------------------------+-----------+---------------+
    

    You can generate text tables at tablesgenerator like following formats.

    You can give input as:

    1. SQL result in File -> Paste Table Data
    2. File -> Import CSV File
    3. Or you can generate table manually

    Here you can align column values to left, right, centre.

    Without Using Unicode symbols for table borders

    +----+-------------+--------+-------+-----+
    | id | name        | gender | state | age |
    +----+-------------+--------+-------+-----+
    | 1  | John Kenedy | male   | NY    | 32  |
    +----+-------------+--------+-------+-----+
    | 2  | Meresa Oslo | female | HI    | 26  |
    +----+-------------+--------+-------+-----+
    | 3  | Mike Lanes  | male   | FL    | 25  |
    +----+-------------+--------+-------+-----+
    

    Useing Unicode symbols for table borders

    ╔════╦═════════════╦════════╦═══════╦═════╗
    ║ id ║ name        ║ gender ║ state ║ age ║
    ╠════╬═════════════╬════════╬═══════╬═════╣
    ║ 1  ║ John Kenedy ║ male   ║ NY    ║ 32  ║
    ╠════╬═════════════╬════════╬═══════╬═════╣
    ║ 2  ║ Meresa Oslo ║ female ║ HI    ║ 26  ║
    ╠════╬═════════════╬════════╬═══════╬═════╣
    ║ 3  ║ Mike Lanes  ║ male   ║ FL    ║ 25  ║
    ╚════╩═════════════╩════════╩═══════╩═════╝
    

    Markdown table

    | id | name        | gender | state | age |
    |----|-------------|--------|-------|-----|
    | 1  | John Kenedy | male   | NY    | 32  |
    | 2  | Meresa Oslo | female | HI    | 26  |
    | 3  | Mike Lanes  | male   | FL    | 25  |
    

提交回复
热议问题