-
Defining & Creating views
Hi,
Is it possible to define a column when creating a view.
I knowyou can determine the name of the column..but is there a way to determine
content like when creating a table...
i.e as in creating a table
create tabe table1
(column1 char(10));
Is this possible with creating views...
Any help would be grateful cheers
-
Re: Defining & Creating views
Hi!
nope, i don't think what you wanted could be done. but you could try something
like this and it will generate the same result :
Create View Pubs [Pub_name] <--- (optional)
As
Select cast(pub_name as Char(10))
From Publishers
Go
hope this helps!
JC
"neil" <neil.ward@document.co.uk> wrote:
>
>Hi,
>
>Is it possible to define a column when creating a view.
>
>I knowyou can determine the name of the column..but is there a way to determine
>content like when creating a table...
>
>i.e as in creating a table
>
>create tabe table1
>(column1 char(10));
>
>Is this possible with creating views...
>
>Any help would be grateful cheers
-
Re: Defining & Creating views
Cheers JC..this works a treat..many thanks
Neil
"JC" <jcarlosra@digitelone.com> wrote:
>
>Hi!
>
>nope, i don't think what you wanted could be done. but you could try something
>like this and it will generate the same result :
>
> Create View Pubs [Pub_name] <--- (optional)
> As
> Select cast(pub_name as Char(10))
> From Publishers
> Go
>
>
>hope this helps!
>
>JC
>
>
>"neil" <neil.ward@document.co.uk> wrote:
>>
>>Hi,
>>
>>Is it possible to define a column when creating a view.
>>
>>I knowyou can determine the name of the column..but is there a way to determine
>>content like when creating a table...
>>
>>i.e as in creating a table
>>
>>create tabe table1
>>(column1 char(10));
>>
>>Is this possible with creating views...
>>
>>Any help would be grateful cheers
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|