TA
2004-09-10 20:07:36 UTC
I have this stored procedure that sets defaults to blank strings for all the
columns in a table. I have some date columns in this table also, how would I
identify that the column is data or integer or double or char..
PROCEDURE DefaultsALL
USE qtk EXCLUSIVE
FOR i = 1 TO FCOUNT()
fieldname = FIELD(i)
ALTER TABLE Qtk ALTER COLUMN (fieldname) set default ' '
ENDFOR
ENDPROC
columns in a table. I have some date columns in this table also, how would I
identify that the column is data or integer or double or char..
PROCEDURE DefaultsALL
USE qtk EXCLUSIVE
FOR i = 1 TO FCOUNT()
fieldname = FIELD(i)
ALTER TABLE Qtk ALTER COLUMN (fieldname) set default ' '
ENDFOR
ENDPROC