Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
MySQL: varchar/text/blob...?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 18.06.2005 01:52    Post subject: MySQL: varchar/text/blob...? Add user to your forum ignore list Reply with quote

Googlala sam, no nikako da nadjem neki sajt gdje su tipovi dobro pojasnjeni. Probala sam downloadat manual sa mysql homepage, ali nije htjelo, ne znam jel s moje ili njihove strane nesto puca...

Trebam za svaki item u bazi napisat neki opis, a 255 znakova mi je premalo tako da varchar otpada. Text mi je ipak previse, mislim da to zapisuje do par tisuca znakova, jel? meni bi izmedju 500 i 1000 bilo dovoljno.
Blob nemam pojma sto je, samo znam da postoji, i kad sam jednom prilikom pokusala odredit varchar preko 255 znakova prijavilo mi je error (naravno) i predlozilo da koristim blob.
Savjeti?

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
retro_one



Joined: 16 Sep 2003
Posts: 880
Location: DUBRAVA.

PostPosted: 18.06.2005 01:59    Post subject: Add user to your forum ignore list Reply with quote

BLOB - Binary Large Object - u to mozes spremiti file
tebi treba vjerojatno TINYTEXT (ako se radi o mysql-u)

_________________
Just your average eccentric programmer.
Back to top
View user's profile Send private message
les



Joined: 25 Oct 2004
Posts: 370

PostPosted: 18.06.2005 02:41    Post subject: Add user to your forum ignore list Reply with quote

retro_one wrote:
BLOB - Binary Large Object - u to mozes spremiti file
tebi treba vjerojatno TINYTEXT (ako se radi o mysql-u)

U TINYTEXT stane samo 255 znakova kao i u VARCHAR. Sljedeća "veća" opcija je TEXT - nema ništa "između"....
Back to top
View user's profile Send private message Send e-mail
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 18.06.2005 02:56    Post subject: Add user to your forum ignore list Reply with quote

les wrote:
U TINYTEXT stane samo 255 znakova kao i u VARCHAR. Sljedeća "veća" opcija je TEXT - nema ništa "između"....

a ne Sad pa sta su oni mislili - sta ce im tako mali tinytext kad imaju varchar? bah, bezveze...

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
retro_one



Joined: 16 Sep 2003
Posts: 880
Location: DUBRAVA.

PostPosted: 18.06.2005 16:43    Post subject: Add user to your forum ignore list Reply with quote

les wrote:
retro_one wrote:
BLOB - Binary Large Object - u to mozes spremiti file
tebi treba vjerojatno TINYTEXT (ako se radi o mysql-u)

U TINYTEXT stane samo 255 znakova kao i u VARCHAR. Sljedeća "veća" opcija je TEXT - nema ništa "između"....


vidi fakat...brijao sam da je 2*255, a jebiga Smile

_________________
Just your average eccentric programmer.
Back to top
View user's profile Send private message
Chaby



Joined: 19 Oct 2003
Posts: 132
Location: VG/ Kurilovec

PostPosted: 18.06.2005 16:46    Post subject: Add user to your forum ignore list Reply with quote

CHAR( ) A fixed section from 0 to 255 characters long.
VARCHAR( ) A variable section from 0 to 255 characters long.
TINYTEXT A string with a maximum length of 255 characters.
TEXT A string with a maximum length of 65535 characters.
BLOB A string with a maximum length of 65535 characters.
MEDIUMTEXT A string with a maximum length of 16777215 characters.
MEDIUMBLOB A string with a maximum length of 16777215 characters.
LONGTEXT A string with a maximum length of 4294967295 characters.
LONGBLOB A string with a maximum length of 4294967295 characters.


btw. na SQL Serveru je VarChar do 8000 znakova...
Back to top
View user's profile Send private message
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 19.06.2005 01:12    Post subject: Add user to your forum ignore list Reply with quote

a dobro ako ja odredim da je tipa TEXT, hoce li to u bazi rezervirati memoriju za svih 65535 znakova, ili samo onoliko koliko je u upotrebi? malo mi je glupo toliko ako cu koristit samo 10%...

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group