You are here: Re: Return bool from query « PHP Programming Language « IT news, forums, messages
Re: Return bool from query

Posted by frizzle on 10/13/97 11:39

Jerry Stuckle wrote:
> frizzle wrote:
> > pjSoni wrote:
> >
> >>Hi
> >>
> >>Try to do like when admin enters article he should enter <SPLIT> tag
> >>from where you want break with article so when you read from db try to
> >>split from split tag.
> >>
> >>Regards,
> >>Jatin
> >
> >
> > Thanks all for the replies.
> > I understand what bobzimuta and pjSoni are saying with the intro thing,
> > but i need two different fields, so the intro in the fulltext can
> > differ from just te intro.
> >
> > I think i'll go with Jerry's: SELECT COUNT(id) FROM texttable WHERE
> > id=1;
> > But the id of the fulltext would have to match the exact id of the
> > record with intro and other info?
> > Would it matter if i added LIMIT 1 to it, so the DB won't go on?
> >
> > How careful should i be asigning extra indexes? I read somewhere, that
> > if i asign indexes to fields that aren't going te be updated a lot,
> > it's not bad, otherwise it would take a lot of time ...
> >
> > And now i also have second thoughts about my field in the topic records
> > with the number of replies.
> > It goes against normalization, but i thought it would save a lot of
> > calculating time ...
> >
> > Frizzle.
> >
>
> Yes, it has to match the key of the other table. It would also the
> primary key of that entry. Being a primary key, it would be unique.
>
> Also, if your use INNODB tables you can make it a foreign key
> referencing the other table.
>
> You shouldn't need to add LIMIT 1 to the query because you have a unique
> index on the field. MySQL should be able to fetch everything it needs
> from the index (which, unlike the table, is in order).
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================

Why is this unlike the table in order? Since both are probably created
in the same instance. The Fulltext indexes have a bigger chance *not*
to be in order, since they could be added later ...

And what exactly do you mean with a foreign key ?

Frizzle.

(Thanks a lot for your effort to help me!)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация