Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: From Oracle to Mysql

Re: From Oracle to Mysql

From: Turkbear <john.g_at_dot.spamfree.com>
Date: Fri, 23 Jan 2004 10:23:51 -0600
Message-ID: <hii210l63f95l4f07pae0bqbnmc2j125cb@4ax.com>


"JPM" <jperezme_at_jazzfree.com> wrote:

>Hello.
>I'm trying to build a sql sentence from oracle to mysql but it doesn't
>works.
>Anyone knows how to do this works on mysql ?
>
>CREATE PUBLIC SYNONYM AULA FOR AULAS;
>
>Thanks.

I quick search at www.mysql.com found:( so you could have tried harder, I think)



CREATE SYNONYM statement

The CREATE SYNONYM statement defines a synonym (alternative name) of a table name.

Syntax

<create_synonym_statement> ::= CREATE [PUBLIC] SYNONYM [<owner>.]<synonym_name> FOR <table_name>

owner, synonym_name, table_name

Explanation

The table name must not denote a temporary base table (see Table). The user must have a privilege for the specified table. The current user must be the owner.

The synonym name can be specified anywhere instead of the table name. This has the same effect as specifying the table name for which the synonym was defined.

PUBLIC If PUBLIC is specified, the synonym name must not be identical to the name of a synonym defined with PUBLIC. A synonym is generated that can be accessed by all users.

If PUBLIC is not specified, a private synonym is generated that is only known by the current user. In this case, the synonym name must not be identical to the name of an existing base table, view table, or a private synonym of the current user. If a synonym with the same name and the PUBLIC attribute exists, it cannot be accessed by the current user until the private synonym has been dropped.


Received on Fri Jan 23 2004 - 10:23:51 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US