dbTalk Databases Forums  

Will it auto convert datatype???

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Will it auto convert datatype??? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
chuayongquan@hotmail.com
 
Posts: n/a

Default Will it auto convert datatype??? - 05-15-2005 , 09:11 AM






When i do this statement:

insert into table (cost) values ('2')

cost column is a bigint datatype.

will it auto convert the string 2 into integer 2???


Reply With Quote
  #2  
Old   
John Bell
 
Posts: n/a

Default Re: Will it auto convert datatype??? - 05-15-2005 , 10:10 AM






Hi

See the topic "CAST and CONVERT" in books online for information regarding
when you will need an implicit or explicit convertion.

John

<chuayongquan (AT) hotmail (DOT) com> wrote

Quote:
When i do this statement:

insert into table (cost) values ('2')

cost column is a bigint datatype.

will it auto convert the string 2 into integer 2???




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.