we need to change one column i.e., Start_Date of datatype datetime to bigint.
For existing datas we have records like ‘2010-01-01 00:00:00’ which should be converted into bigint and should return value like ‘20100101000000’.
I tried with convert and cast fn but i am not getting the desire output.
Can anyone help me out on this.
we need to change one column i.e., Start_Date of datatype datetime to bigint. For
Share
First convert datetime to varchar.
Then do a replace for ‘-‘ with empty char ”