Skip to main content



      Home
Home » Eclipse Projects » DTP » Problem creating table DB [SOLVED]
Problem creating table DB [SOLVED] [message #823497] Sun, 18 March 2012 07:51
Eclipse UserFriend
Hello! I've created a mysql database called "example". Then I've created a new sql file called "database.sql".
Now I''m having problems with creating tables.

I've written this code in database.sql editor:

CREATE TABLE picture (
`id` int(10) NOT NULL auto_increment,
`image` blob,
PRIMARY KEY (`id`)
);


But when I execute this code the error is:
CREATE TABLE picture (
`id` int(10) NOT NULL auto_increment,
`image` blob,
PRIMARY KEY (`id`)
);

No database selected


even if I've selected the database!


I've also tried to create a new SCHEMA, and then a table. It's works but then I cant see the table in my database.

Someone can help me?? Thanks!


[SOLVED!]

[Updated on: Sun, 18 March 2012 13:33] by Moderator

Previous Topic:java.lang.ClassNotFoundException: org.apache.derby.jdbc.ClientDriver
Next Topic:Manually expand Data Source Explorer nodes
Goto Forum:
  


Current Time: Sun Jul 06 13:08:34 EDT 2025

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

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

Back to the top