Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,772 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,101 people online right now. Registration is fast and FREE... Join Now!




adding a column

 
Reply to this topicStart new topic

adding a column

priyashe
post 9 Oct, 2008 - 09:44 PM
Post #1


D.I.C Head

**
Joined: 28 Aug, 2008
Posts: 71

How to create a table with boolean value ie it should return yes/no
User is offlineProfile CardPM

Go to the top of the page

Trogdor
post 10 Oct, 2008 - 12:34 AM
Post #2


D.I.C Addict

Group Icon
Joined: 6 Oct, 2006
Posts: 517



Thanked 3 times

Dream Kudos: 125
My Contributions


depends on your database.

This post has been edited by Trogdor: 10 Oct, 2008 - 01:13 AM
User is offlineProfile CardPM

Go to the top of the page

priyashe
post 10 Oct, 2008 - 12:53 AM
Post #3


D.I.C Head

**
Joined: 28 Aug, 2008
Posts: 71

I'm using sql server database
User is offlineProfile CardPM

Go to the top of the page

Trogdor
post 10 Oct, 2008 - 01:10 AM
Post #4


D.I.C Addict

Group Icon
Joined: 6 Oct, 2006
Posts: 517



Thanked 3 times

Dream Kudos: 125
My Contributions


Sqlserver has the bit datatype, it is a kind of boolean.
Personaly i often prefer to use a char[1] field containing Y/N, but that is a matter of taste.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 01:53PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month