LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-24-2009, 05:31 PM   #1
hattori.hanzo
Member
 
Registered: Aug 2006
Posts: 168

Rep: Reputation: 15
mysql 5.0 - CREATE TABLE and the UNION=() statement


What is the use of UNION=() in CREATE TABLE?

Code:
ENGINE=MRG_MyISAM DEFAULT CHARSET=utf8 UNION=();
I have been given some code and could not explain why it's err's out. Checked the mysql 5.0 manual but nothing(http://dev.mysql.com/doc/refman/5.0/...ate-table.html). It only explains using UNION in a SELECT statement which I understand.

If I drop off UNION=() then CREATE TABLE works fine.

thanks & regards
 
Old 02-24-2009, 07:37 PM   #2
gergely89
Member
 
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
UNION is one of the table options and in your code it has no valid values (no table name defined), so that might be the reason why MySQL throws the error. It should be something like
Quote:
ENGINE=MRG_MyISAM DEFAULT CHARSET=utf8 UNION=(tbl_name);
linux

Last edited by gergely89; 02-27-2009 at 10:59 PM.
 
Old 02-24-2009, 08:14 PM   #3
hattori.hanzo
Member
 
Registered: Aug 2006
Posts: 168

Original Poster
Rep: Reputation: 15
Thanks. I kinda suspected that. I will check with the dude who wrote the code.

regards
 
Old 02-25-2009, 04:05 PM   #4
Vanostaajen
LQ Newbie
 
Registered: Jan 2009
Distribution: Ubuntu 8.10
Posts: 25

Rep: Reputation: 15
I have a qsuestion: Why is sqlite(sucks) standard in amarok in ubuntu instead of mysql(rocks)? And why is it so damn hard to configure mysql?
 
Old 02-25-2009, 08:12 PM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
You'd better start a new thread on this, it is totally unrelated with the orginal question.

What is your problem configuring MySQL. Installation? Or setting up a database?

jlinkels
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL statement to get the last row in a table oulevon Programming 11 04-03-2009 08:30 PM
CREATE TABLE problems in MySQL mosdef Linux - Software 0 03-10-2004 10:18 AM
MySQL non-realtime table-by-table mirroring Passive Linux - Software 1 01-20-2004 12:11 PM
How to import MS ACCESS Table including OLE filed into the MySQL Table ? myunicom Linux - General 1 11-28-2003 11:30 AM
mysql doesnt create a table for each domain PurpleMotion Linux - General 0 08-01-2003 03:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration