Re: Stored procedure to set defaults
From: Dan Freeman (spam_at_microsoft.com)
Date: 09/10/04
- Next message: TA: "Re: Stored procedure to set defaults"
- Previous message: TA: "Stored procedure to set defaults"
- In reply to: TA: "Stored procedure to set defaults"
- Next in thread: TA: "Re: Stored procedure to set defaults"
- Reply: TA: "Re: Stored procedure to set defaults"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 10 Sep 2004 13:25:40 -0700
You should look up Type() in the help file.
But you may be working a little too hard. Take a look at AFIELDS() while
you're in there. <g>
Dan
TA wrote:
> 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
- Next message: TA: "Re: Stored procedure to set defaults"
- Previous message: TA: "Stored procedure to set defaults"
- In reply to: TA: "Stored procedure to set defaults"
- Next in thread: TA: "Re: Stored procedure to set defaults"
- Reply: TA: "Re: Stored procedure to set defaults"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading