Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: INSERT QUERY

From: Ananda Kumar <anandkl(at)gmail.com>
Date: Wed Aug 29 2007 - 06:20:55 EDT


Its all ways better to use integers without quotes. It would effect execution plan of the sql.

regards
anandkl

On 8/29/07, Krishna Chandra Prajapati <prajapatikc@gmail.com> wrote:
>
> hi all,
>
> create table stu (name varchar(20), roll int(2), id decimal(2));
>
> insert into stu values ('krishna', '25', '25');
> insert into stu values ('krishna', 25, 25);
>
> The above two queries are working properly.
> my question is whether it is going to impact in future.
> Integer and decimal values in quotes (') and without quotes makes any
> difference.
> Normally which format should be used.
>
> Regards,
> Krishna
>
Received on Wed Aug 29 06:22:46 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:07:49 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library