View Implementation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Byung Choi

    #1

    View Implementation

    Hi

    Anybody has implemented View for MySQL?
    I think it can be done outside of Database
    if query transformation approach is used.



    CREATE VIEW Model
    SELECT * FROM Model_CA, Brand
    WHERE Model_CA.brand_ rid = Brand.rid


    Select brand_name from Model
    where model.name = 'Test'

    This can be transformed into

    SELECT brand_name FROM Model_CA, Brand
    WHERE Model_CA.brand_ rid = Brand.rid and
    Model_CA.name = 'Test'


    Byung Choi
  • swdev1

    #2
    Re: View Implementation

    Byung -
    I do this all day long outside of mySql with Visual FoxPro.
    You can too - with Versions 5,6,7 and 8.
    Install your odbc driver and give it a whirl?
    Remote views are COOL, man .
    mondo regards [Bill]

    --
    William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
    email.
    FREE LONG DISTANCE -> mailto:excel-info@efgroup.ne t
    mySql / VFP / MS-SQL
    "Byung Choi" <bchoi@ueic.com > wrote in message
    news:b797c63c.0 308271032.21854 0bb@posting.goo gle.com...[color=blue]
    > Hi
    >
    > Anybody has implemented View for MySQL?
    > I think it can be done outside of Database
    > if query transformation approach is used.
    >
    >
    >
    > CREATE VIEW Model
    > SELECT * FROM Model_CA, Brand
    > WHERE Model_CA.brand_ rid = Brand.rid
    >
    >
    > Select brand_name from Model
    > where model.name = 'Test'
    >
    > This can be transformed into
    >
    > SELECT brand_name FROM Model_CA, Brand
    > WHERE Model_CA.brand_ rid = Brand.rid and
    > Model_CA.name = 'Test'
    >
    >
    > Byung Choi[/color]


    Comment

    Working...