473,466 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Creating FULLTEXT index OK on command line, but NOT with DBI...?

Experts,

Given a script that uses the following format to create tables on the
fly:

CREATE TABLE $tName (
id int(11) unsigned NOT NULL auto_increment PRIMARY KEY,
[...]
p_MSG text,
[...]
notifyLvl tinyint unsigned,
FULLTEXT KEY p_MSG (p_MSG)
)TYPE=MyISAM

The table is created no problem, BUT the FULLTEXT directive is ignored!
I have to manually add them with:

mysql> ALTER TABLE t20050224 ADD FULLTEXT KEY p_MSG (p_MSG);
Query OK, 303300 rows affected (1 min 7.77 sec)
Records: 303300 Duplicates: 0 Warnings: 0

I then do a:

mysql> show create table t20050224;

| t20050224 |CREATE TABLE `t20050224` (
`id` int(11) unsigned NOT NULL auto_increment,
[...]
`p_MSG` text,
[...]
`notifyLvl` tinyint(3) unsigned default NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `p_MSG` (`p_MSG`)
) TYPE=MyISAM |

...and it looks fine (once I've added the FULLETXT index manually)!

Clearly not a problem with MySQL, right? Then why are commands treated
differently when using DBI/DBD?

And more importantly, how can one execute a CREATE TABLE command and
only have SOME of the directives used, yet without failure of the
entire command?

TIA!

Jul 23 '05 #1
0 1025

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Phil Powell | last post by:
Relevancy scores are normally defined by a MySQL query on a table that has a fulltext index. The rules for relevancy scoring will exclude certain words due to their being too short (minimum...
0
by: Matt W | last post by:
Hi all, I'm planning to use MySQL's full-text search for my forum system (possibly 5+ million posts). I've been playing with it a lot lately to see the performance and functionality and have...
0
by: bnow | last post by:
I am using SHOW INDEX on one of my tables that I have a FULLTEXT index on. Table: article non_unique: 1 key_name: THEARTICLE seq_in_index: 1 column_name: THEARTICLE collation: A...
0
by: Phil Powell | last post by:
Retracing my problem leads me to believe I never successfully created fulltext indexes for MySQL 3.23.58 MyISAM tables. I went to the MySQL manual and was able - or so I thought - to create them,...
0
by: Alex Glass | last post by:
I have a large contacts table with about 30 columns of text fields and 5 fulltext indexes spanning the different sections of the table. I'm curious if anyone could suggest a better way to find...
0
by: Robert Oschler | last post by:
I read a while back that MySQL will only use one index per query. (If this is not so, please tell me and point me to a doc that gives a good explanation of MySQL's current index usage policy). ...
1
by: Robert Oschler | last post by:
I read a while back that MySQL will only use one index per query. (If this is not so, please tell me and point me to a doc that gives a good explanation of MySQL's current index usage policy). ...
0
by: AQSAPFI | last post by:
Hi, I have a problem restoring a Read-Only filegroup in a database. I've restored the Read/Write filegroups first without any problem. Then, I am able to recover Read-Only filegroups which do...
2
by: John Kotuby | last post by:
Hi all, Maybe this belongs in the Full Text group but I am writing an ASP.NET application with a SQL Server 2005 backend, so I am posing the question here. I have been using fulltext search...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.