PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > tinyblob vs varchar(255) binary
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
tinyblob vs varchar(255) binary

Réponse
 
LinkBack Outils de la discussion
Vieux 07/11/2007, 06h17   #1
FFMG
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut tinyblob vs varchar(255) binary


Hi,

I cannot see a real difference between ROWA and ROWB

CREATE TABLE THE_TABLE
(
ROWA varchar(255) binary NOT NULL default '',
ROWA tinyblob NOT NULL
)ENGINE=InnoDB, DEFAULT CHARSET=utf8;

As far as I can see they are both 255 chars binary, (one can have
default while the other cannot).
Are they not both the same?

FFMG


--

'webmaster forum' (http://www.httppoint.com) | 'Free Blogs'
(http://www.journalhome.com/) | 'webmaster Directory'
(http://www.webhostshunter.com/)
'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php) | 'Free URL
redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=21957

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

  Réponse avec citation
Vieux 07/11/2007, 19h07   #2
Paul Lautman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: tinyblob vs varchar(255) binary

FFMG wrote:
> Hi,
>
> I cannot see a real difference between ROWA and ROWB
>
> CREATE TABLE THE_TABLE
> (
> ROWA varchar(255) binary NOT NULL default '',
> ROWA tinyblob NOT NULL
> )ENGINE=InnoDB, DEFAULT CHARSET=utf8;
>
> As far as I can see they are both 255 chars binary, (one can have
> default while the other cannot).
> Are they not both the same?
>
> FFMG


I can't even see a ROWB???


  Réponse avec citation
Vieux 07/11/2007, 19h18   #3
FFMG
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: tinyblob vs varchar(255) binary


Paul Lautman;101906 Wrote:
>
> > CREATE TABLE THE_TABLE
> > (
> > ROWA varchar(255) binary NOT NULL default '',
> > ROWA tinyblob NOT NULL
> > )ENGINE=InnoDB, DEFAULT CHARSET=utf8;
> >
> > As far as I can see they are both 255 chars binary, (one can have
> > default while the other cannot).
> > Are they not both the same?

>
> I can't even see a ROWB???


Sorry there was a small typo,
...
ROWA varchar(255) binary NOT NULL default '',
ROWB tinyblob NOT NULL
)ENGINE=InnoDB, DEFAULT CHARSET=utf8;

Thanks

FFMG


--

'webmaster forum' (http://www.httppoint.com) | 'Free Blogs'
(http://www.journalhome.com/) | 'webmaster Directory'
(http://www.webhostshunter.com/)
'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php) | 'Free URL
redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=21957

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

  Réponse avec citation
Vieux 08/11/2007, 23h33   #4
Kees Nuyt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: tinyblob vs varchar(255) binary

On Wed, 7 Nov 2007 01:17:01 -0500, FFMG
<FFMG.2zo23i@no-mx.httppoint.com> wrote:

>
>Hi,
>
>I cannot see a real difference between ROWA and ROWB
>
> CREATE TABLE THE_TABLE (
> ROWA varchar(255) binary NOT NULL default '',
> ROWB tinyblob NOT NULL -- (corrected that 4 u)
> )ENGINE=InnoDB, DEFAULT CHARSET=utf8;
>
>As far as I can see they are both 255 chars binary, (one can have
>default while the other cannot).
>Are they not both the same?


You already found one difference.
There _might_ be functions that only accept blobs as a
parameter. I apologize for not taking the effort of
searching one.

>FFMG

--
( Kees
)
c[_] If I'm supposed to live every day like it's my
last, I want a gallon of morphine. (Russ Wallace) (#393)
  Réponse avec citation
Vieux 09/11/2007, 07h15   #5
FFMG
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: tinyblob vs varchar(255) binary


Kees Nuyt;102227 Wrote:
> On Wed, 7 Nov 2007 01:17:01 -0500, FFMG
> <FFMG.2zo23i@no-mx.httppoint.com> wrote:
>
> >
> >Hi,
> >
> >I cannot see a real difference between ROWA and ROWB
> >
> > CREATE TABLE THE_TABLE (
> > ROWA varchar(255) binary NOT NULL default '',
> > ROWB tinyblob NOT NULL -- (corrected that 4 u)
> > )ENGINE=InnoDB, DEFAULT CHARSET=utf8;
> >
> >As far as I can see they are both 255 chars binary, (one can have
> >default while the other cannot).
> >Are they not both the same?

>
> You already found one difference.
> There _might_ be functions that only accept blobs as a
> parameter. I apologize for not taking the effort of
> searching one.
> --
> ( Kees
> )
> c[_] If I'm supposed to live every day like it's my
> last, I want a gallon of morphine. (Russ Wallace) (#393)


You must be right.
I doubt that having/not having a default value is a reason for a new
variable.

FFMG


--

'webmaster forum' (http://www.httppoint.com) | 'Free Blogs'
(http://www.journalhome.com/) | 'webmaster Directory'
(http://www.webhostshunter.com/)
'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php) | 'Free URL
redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=21957

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h41.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13602 seconds with 13 queries