dbTalk Databases Forums  

How to use SQL Null while trying to fetch row values

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss How to use SQL Null while trying to fetch row values in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default How to use SQL Null while trying to fetch row values - 07-26-2006 , 01:07 AM






------=_Part_15516_22796996.1153893971001
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi I am trying to make more efficient use of the tables that I have, since
the size seems to keep growing larger. I had my table fields to be all NOT
NULL and hence i never had to do any checking, now I am planning on using
this feature and allowing null fields in the tables. How would this affect
my fetching row values? how can I handle this? Also do you really think i
would be able to save anything with null? 90% of my fields are varchar(X) so
if they dont have a value they will only consume 1 byte of space, so then
would it make sense for me to make the fields null?

Thanks a ton
Ankur

------=_Part_15516_22796996.1153893971001--

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: How to use SQL Null while trying to fetch row values - 07-26-2006 , 09:41 AM






------=_Part_107988_423217.1153924780225
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Actually, if you are using SSQL you will have to apply the patch, and if you
are using them, the actual eficiency of NULL fields are a matter of design
of the program and/or the database structure..

If you are using template queries, I do it in a student's management program
i am developing, you will find them more than usefull, if not sure you can
see the MySQL Manual to look for better use of

2006/7/26, Ankur G35 Saxena <g35rider (AT) gmail (DOT) com>:
Quote:
Hi I am trying to make more efficient use of the tables that I have, since
the size seems to keep growing larger. I had my table fields to be all NOT
NULL and hence i never had to do any checking, now I am planning on using
this feature and allowing null fields in the tables. How would this affect
my fetching row values? how can I handle this? Also do you really think i
would be able to save anything with null? 90% of my fields are varchar(X)
so
if they dont have a value they will only consume 1 byte of space, so then
would it make sense for me to make the fields null?

Thanks a ton
Ankur



--
Carlos Flores

------=_Part_107988_423217.1153924780225--


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.