Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » SQL file(SQL file)
SQL file [message #1828222] Thu, 04 June 2020 10:51 Go to next message
Gregory Dimatteo is currently offline Gregory DimatteoFriend
Messages: 1
Registered: June 2020
Junior Member
Hello:
I am trying to execute an SQL file using WTP. The problem is that only
the first statement will execute and then it fails. I've been using these
scripts for a long time, so there are no errors in them.

When I execute:

DROP TABLE IF EXISTS family;
DROP TABLE IF EXISTS person;
DROP TABLE IF EXISTS familychild;
DROP TABLE IF EXISTS personsource;
DROP TABLE IF EXISTS marriagesource;
DROP TABLE IF EXISTS audit;
DROP TABLE IF EXISTS user;

the following message results:

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 ';
DROP TABLE IF EXISTS person;
DROP TABLE IF EXISTS familychild;
DROP TABLE ' at line 1
Re: SQL file [message #1828236 is a reply to message #1828222] Thu, 04 June 2020 14:43 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

That's a message from your MySQL server. Did you do as it said? And why does the message refer to an apostrophe
that doesn't appear to be in your shown statements?


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Some EJBs only get published if project is open in eclipse
Next Topic:How do I permanently disable smart insert, for all file types, forever?
Goto Forum:
  


Current Time: Fri Apr 26 06:53:57 GMT 2024

Powered by FUDForum. Page generated in 0.04187 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top