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 > VARCHAR and size
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
VARCHAR and size

Réponse
 
LinkBack Outils de la discussion
Vieux 05/10/2007, 14h31   #1
Marco
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut VARCHAR and size

Hello to anyone,
I need to get the max number of char I can store into a varchar
variable. Is there any function I can use?
ex.
DECLARE MYVAR CHAR(3)

ThefunctionThatLetMeKnowTheSizeOf(MYVAR) = 3

thanks
Marco
  Réponse avec citation
Vieux 06/10/2007, 11h37   #2
Séverin Richard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: VARCHAR and size

varchar( 255 ) is the max size i know for this colmun type.


Marco wrote:
> Hello to anyone,
> I need to get the max number of char I can store into a varchar
> variable. Is there any function I can use?
> ex.
> DECLARE MYVAR CHAR(3)
>
> ThefunctionThatLetMeKnowTheSizeOf(MYVAR) = 3
>
> thanks
> Marco

  Réponse avec citation
Vieux 06/10/2007, 23h30   #3
Paul Lautman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: VARCHAR and size

Séverin Richard wrote:
> Marco wrote:
>> Hello to anyone,
>> I need to get the max number of char I can store into a varchar
>> variable. Is there any function I can use?
>> ex.
>> DECLARE MYVAR CHAR(3)
>>
>> ThefunctionThatLetMeKnowTheSizeOf(MYVAR) = 3
>>
>> thanks
>> Marco

> varchar( 255 ) is the max size i know for this colmun type.
>
>

Please do not top post. (Top posting fixed)

And you have not answered the question that was asked!


  Réponse avec citation
Vieux 06/10/2007, 23h56   #4
strawberry
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: VARCHAR and size

On 6 Oct, 22:30, "Paul Lautman" <paul.laut...@btinternet.com> wrote:
> Séverin Richard wrote:
> > Marco wrote:
> >> Hello to anyone,
> >> I need to get the max number of char I can store into a varchar
> >> variable. Is there any function I can use?
> >> ex.
> >> DECLARE MYVAR CHAR(3)

>
> >> ThefunctionThatLetMeKnowTheSizeOf(MYVAR) = 3

>
> >> thanks
> >> Marco

> > varchar( 255 ) is the max size i know for this colmun type.

>
> Please do not top post. (Top posting fixed)
>
> And you have not answered the question that was asked!


SHOW COLUMNS FROM my_table WHERE `FIELD` = 'my_char_field';

  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 00h48.


É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,12606 seconds with 12 queries