Reputation: 15090
i have one problem that, i have to change type of data in column based on foreign key stored in that row.
unit_id unit_name
1 String
2 Float
3 Date
4 Int
Id spec value unit id
1 "A" 1
2 30.90 2
3 null 3
4 100 4
now i should achieve the above condition. how do i achieve it?
Upvotes: 1
Views: 96
Reputation: 37778
This is not possible. What you can do:
spec value
, and parse the content yourself.spec value_string
, spec value_float
, ...) Problem: The table will contain lots of null values. But this approach can often be seen for reporting tables.unit_name
.Upvotes: 1