PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > mysql.general > INSERT QUERY
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
INSERT QUERY

Réponse
 
LinkBack Outils de la discussion
Vieux 29/08/2007, 11h11   #1 (permalink)
Krishna Chandra Prajapati
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut INSERT QUERY

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

  Réponse avec citation
Vieux 29/08/2007, 11h20   #2 (permalink)
Ananda Kumar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: INSERT QUERY

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
>


  Réponse avec citation
Vieux 29/08/2007, 11h28   #3 (permalink)
Krishna Chandra Prajapati
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: INSERT QUERY

Hi Anand,

Is there any other way it effects the queries.

Regards,
Krishna

On 8/29/07, Ananda Kumar <anandkl@gmail.com> wrote:
>
> 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
> >

>
>



--
Krishna Chandra Prajapati
MySQL DBA,

Ed Ventures e-Learning Pvt. Ltd,
201,202, Ashoka Bhoopal Chambers,
S P Road, Secunderabad 500003.
Ph. No. - 040-39188771
Url: www.ed-ventures-online.com

  Réponse avec citation
Vieux 29/08/2007, 11h59   #4 (permalink)
Ananda Kumar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: INSERT QUERY

No, i dont see any other effect.

On 8/29/07, Krishna Chandra Prajapati <prajapatikc@gmail.com> wrote:
>
> Hi Anand,
>
> Is there any other way it effects the queries.
>
> Regards,
> Krishna
>
> On 8/29/07, Ananda Kumar < anandkl@gmail.com> wrote:
> >
> > 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
> > >

> >
> >

>
>
> --
> Krishna Chandra Prajapati
> MySQL DBA,
>
> Ed Ventures e-Learning Pvt. Ltd,
> 201,202, Ashoka Bhoopal Chambers,
> S P Road, Secunderabad 500003.
> Ph. No. - 040-39188771
> Url: www.ed-ventures-online.com


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h31.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09958 seconds with 12 queries