Fields setup to default to NULL (at least I think so)+----------------------------+-----------------------+------+-----+--- +------+----------------+ | Field | Type | Null | Key | De +fault | Extra | +----------------------------+-----------------------+------+-----+--- +------+----------------+ | met_office_id | int(11) | NO | PRI | NU +LL | auto_increment | | observation_datetime_utc | datetime | NO | | NU +LL | | | observation_datetime_local | datetime | NO | | NU +LL | | | observation_datetime | datetime | NO | | NU +LL | | | station_id | char(4) | NO | MUL | NU +LL | | | station_name | char(25) | YES | | NU +LL | | | temp_c | decimal(4,2) | YES | | NU +LL | | | dewpoint_c | decimal(4,2) | YES | | NU +LL | | | humidity_rh | decimal(5,2) unsigned | YES | | NU +LL | | | wind_dir_compass | char(3) | YES | | NU +LL | | | wind_speed_mph | decimal(5,2) unsigned | YES | | NU +LL | | | wind_gust_mph | decimal(5,2) unsigned | YES | | NU +LL | | | visibility_metres | mediumint(8) unsigned | YES | | NU +LL | | | pressure_hpa | decimal(6,2) unsigned | YES | | NU +LL | | | pressure_tendency | char(1) | YES | | NU +LL | | | weather_type | char(2) | YES | | NU +LL | | +----------------------------+-----------------------+------+-----+--- +------+----------------+
In reply to Re^2: Writing NULL values to a MySQL record via DBI
by ureco
in thread Writing NULL values to a MySQL record via DBI
by ureco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |