CREATE TABLE IF NOT EXISTS `sanlien_log` (
    `sanlien_log_seq` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
    `SERIAL_NO` varchar(255) NULL,
    `ID` varchar(255) NULL,
    `STATUS` varchar(255) NULL,
    `SS_INTENSITY` varchar(255) NULL,
    `NETWORK_STATUS` varchar(255) NULL,
    `SS_SYS_YEAR` varchar(255) NULL,
    `SS_SYS_MONTH` varchar(255) NULL,
    `SS_SYS_DAY` varchar(255) NULL,
    `SS_SYS_HOUR` varchar(255) NULL,
    `SS_SYS_MINUTE` varchar(255) NULL,
    `SS_SYS_SECOND` varchar(255) NULL,
    `SS_STATUS` varchar(255) NULL,
    `ELE_STATUS` varchar(255) NULL,
    `SS_EVENT_YEAR` varchar(255) NULL,
    `SS_EVENT_MONTH` varchar(255) NULL,
    `SS_EVENT_DAY` varchar(255) NULL,
    `SS_EVENT_HOUR` varchar(255) NULL,
    `SS_EVENT_MINUTE` varchar(255) NULL,
    `SS_EVENT_SECOND` varchar(255) NULL,
    `SS_INTENSITY_PGA` varchar(255) NULL,
    `SS_INTENSITY_PGV` varchar(255) NULL,
    `SS_INTENSITY_PGA_VX` varchar(255) NULL,
    `SS_INTENSITY_PGA_VY` varchar(255) NULL,
    `SS_INTENSITY_PGA_VZ` varchar(255) NULL,
    `SS_INTENSITY_PGV_VX` varchar(255) NULL,
    `SS_INTENSITY_PGV_VY` varchar(255) NULL,
    `SS_INTENSITY_PGV_VZ` varchar(255) NULL,
    `SS_INTENSITY_PGAY` varchar(255) NULL,
    `SS_INTENSITY_PGAZ` varchar(255) NULL,
    `SS_INTENSITY_PGVX` varchar(255) NULL,
    `SS_INTENSITY_PGVY` varchar(255) NULL,
    `SS_INTENSITY_PGVZ` varchar(255) NULL,
    `SS_INTENSITY_DO` varchar(255) NULL,
    `from` varchar(255) NULL,
    `create_at` varchar(255) NULL
)

INSERT INTO sanlien_log (
    `SERIAL_NO`,
    `ID`,
    `STATUS`,
    `SS_INTENSITY`,
    `NETWORK_STATUS`,
    `SS_SYS_YEAR`,
    `SS_SYS_MONTH`,
    `SS_SYS_DAY`,
    `SS_SYS_HOUR`,
    `SS_SYS_MINUTE`,
    `SS_SYS_SECOND`,
    `SS_STATUS`,
    `ELE_STATUS`,
    `SS_EVENT_YEAR`,
    `SS_EVENT_MONTH`,
    `SS_EVENT_DAY`,
    `SS_EVENT_HOUR`,
    `SS_EVENT_MINUTE`,
    `SS_EVENT_SECOND`,
    `SS_INTENSITY_PGA`,
    `SS_INTENSITY_PGV`,
    `SS_INTENSITY_PGA_VX`,
    `SS_INTENSITY_PGA_VY`,
    `SS_INTENSITY_PGA_VZ`,
    `SS_INTENSITY_PGV_VX`,
    `SS_INTENSITY_PGV_VY`,
    `SS_INTENSITY_PGV_VZ`,
    `SS_INTENSITY_PGAX`,
    `SS_INTENSITY_PGAY`,
    `SS_INTENSITY_PGAZ`,
    `SS_INTENSITY_PGVX`,
    `SS_INTENSITY_PGVY`,
    `SS_INTENSITY_PGVZ`,
    `SS_INTENSITY_DO`,
    `from`,
    `create_at`
)VALUES(
    '$SERIAL_NO',
    '$ID',
    '$STATUS',
    '$SS_INTENSITY',
    '$NETWORK_STATUS',
    '$SS_SYS_YEAR',
    '$SS_SYS_MONTH',
    '$SS_SYS_DAY',
    '$SS_SYS_HOUR',
    '$SS_SYS_MINUTE',
    '$SS_SYS_SECOND',
    '$SS_STATUS',
    '$ELE_STATUS',
    '$SS_EVENT_YEAR',
    '$SS_EVENT_MONTH',
    '$SS_EVENT_DAY',
    '$SS_EVENT_HOUR',
    '$SS_EVENT_MINUTE',
    '$SS_EVENT_SECOND',
    '$SS_INTENSITY_PGA',
    '$SS_INTENSITY_PGV',
    '$SS_INTENSITY_PGA_VX',
    '$SS_INTENSITY_PGA_VY',
    '$SS_INTENSITY_PGA_VZ',
    '$SS_INTENSITY_PGV_VX',
    '$SS_INTENSITY_PGV_VY',
    '$SS_INTENSITY_PGV_VZ',
    '$SS_INTENSITY_PGAX',
    '$SS_INTENSITY_PGAY',
    '$SS_INTENSITY_PGAZ',
    '$SS_INTENSITY_PGVX',
    '$SS_INTENSITY_PGVY',
    '$SS_INTENSITY_PGVZ',
    '$SS_INTENSITY_DO',
    '$from',
    '$create_at'
)