Hi,
I have the following questions. Any help is fully appreciated.
1 - I have a time column, which has a data type of longtext. It looks
like this in a record; 13:15
Q) Is there in any way that I could convert this longtext data type into
timestamp data type to only include
13:15
in the record.
My understanding is that timestamp only has the following display
formats:
TIMESTAMP(14) YYYYMMDDHHMMSS
TIMESTAMP(12) YYMMDDHHMMSS
TIMESTAMP(10) YYMMDDHHMM
TIMESTAMP(8) YYYYMMDD
TIMESTAMP(6) YYMMDD
TIMESTAMP(4) YYMM
TIMESTAMP(2) YY
I only want HH:MM
2) I added a new column a of data type date and drop column b of data
type longtext. However, column a is out of order with other columns in
the table. I like to restore that column order as in the original table.
Q) How do I do that and not having to create another new table ? Is it
possible ?
Many thanks
I have the following questions. Any help is fully appreciated.
1 - I have a time column, which has a data type of longtext. It looks
like this in a record; 13:15
Q) Is there in any way that I could convert this longtext data type into
timestamp data type to only include
13:15
in the record.
My understanding is that timestamp only has the following display
formats:
TIMESTAMP(14) YYYYMMDDHHMMSS
TIMESTAMP(12) YYMMDDHHMMSS
TIMESTAMP(10) YYMMDDHHMM
TIMESTAMP(8) YYYYMMDD
TIMESTAMP(6) YYMMDD
TIMESTAMP(4) YYMM
TIMESTAMP(2) YY
I only want HH:MM
2) I added a new column a of data type date and drop column b of data
type longtext. However, column a is out of order with other columns in
the table. I like to restore that column order as in the original table.
Q) How do I do that and not having to create another new table ? Is it
possible ?
Many thanks