Creating a View with tables only.

  • Hi,

    I would like to ask in Creating Views, can create a view that is table only no datas? Is this possible? And I dont want to add/alter a table from the main database.

    Example :

    Create View Clint

    ( Name char(25),

    Age int,

    )

    Thank you very much.

    CLint

  • You could do something like

    Create View Clint AS

    SELECT CONVERT (CHAR(25), Null) AS Name ,

    CONVERT (INT, 0) AS Age

    WHERE 1 = 2

  • Hi,

    Thank you very much got an idea.

    You help and guide me well.

    Regards,

    Clint

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply