Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/07/2010, 14:03
Leggault
 
Fecha de Ingreso: diciembre-2007
Mensajes: 2
Antigüedad: 16 años, 5 meses
Puntos: 0
Problemas mysql

Hola a todos,

Cree un modelo conceptual en Power Designer (v 12.5) y luego lo pasé a modelo físico. Luego de obviamente checkear errores fui a Database -> Generate Database -> Aceptar. Así, cree un archivo .sql, pero al intentar importarlo a WAMP (phpMyAdmin -> Importar) me sale el siguiente error que no puedo solucionar.

__________________________________________________ _______________
Error

consulta SQL: Documentación

/*================================================= =============*//* DBMS name: Sybase SQL Anywhere 10 *//* Created on: 23/07/2010 15:24:56 *//*================================================= =============*/ IF EXISTS (
SELECT 1
FROM sys.sysforeignkey
WHERE role = 'FK_ARBITRO_ESTA_EN_PARTIDO'
)
THEN
ALTER TABLE ARBITRO DELETE FOREIGN KEY FK_ARBITRO_ESTA_EN_PARTIDO END IF ;

MySQL ha dicho: Documentación
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'if exists(select 1 from sys.sysforeignkey where role='FK_ARBITRO_ESTA_EN_PARTIDO' at line 1

__________________________________________________ _______________

Obviamente dice que hay un error de sintaxis, me imagino algo así como que desde el power designer tengo que crear un "tipo" de base de datos especialmente para mysql, pero la verdad es que no sé.

La version de wamp:

WampServer 2.0i [07/11/09]
Includes :
- Apache 2.2.11
- MySQL 5.1.36
- PHP 5.3.0

Si alguien puede ayudarme con el problema estaría agradecido.

De antemano, muchas gracias.