Reputation: 3362
I have this:
select keyfld, plrevno, space(2) as AAA, ;
plandt, plan_enddt ;
from d:\oct_2018_data\DBFS\plan ;
What is the space(2)
part doing? Is it taking the first 2 characters of the plrevno column?
Upvotes: 1
Views: 1750
Reputation: 650
The space()
function returns a string consisting of n
spaces, where n
is the value passed to the function.
In this case, it's creating an empty field, 2 characters in length, in the query.
Upvotes: 2