I have a TClientDataSet, which is provided by a TTable’s dataset. The dataset has two fields: postalcode (string, 5) and street (string, 20)
TClientDataSet
TTable
Would like to share more accurate Query for unexisting fields. I bet it's better to use cast, neither spaces!
select E.NAME, E.SURNAME, cast(null as varchar(20)) as CITY from EMPLOYEE E
e.g. | Marc'O | Polo | |
| Marc'O | Polo | |
It's more accurate, can definetly see field size, understandable, easy, safe!