Bluehost.com Web Hosting $6.95

Explain :=

This is a discussion on Explain := within the MySQL Database forums, part of the Database Forums category; I tried seaching Google and the MySQL documentation for :=, but that seems to be some special search code as Google ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-08-2007
Lee Peedin
 
Posts: n/a
Default Explain :=

I tried seaching Google and the MySQL documentation for :=, but that
seems to be some special search code as Google return nothing and
MySQL returns a tutorial on how to use the search.

So was exactly is ":=" as compared to just "="?

Thanks
Lee
Reply With Quote
  #2 (permalink)  
Old 03-08-2007
Paul Lautman
 
Posts: n/a
Default Re: Explain :=

Lee Peedin wrote:
> I tried seaching Google and the MySQL documentation for :=, but that
> seems to be some special search code as Google return nothing and
> MySQL returns a tutorial on how to use the search.
>
> So was exactly is ":=" as compared to just "="?
>
> Thanks
> Lee


It's an assignment operator.
See http://dev.mysql.com/doc/refman/5.0/...variables.html


Reply With Quote
  #3 (permalink)  
Old 03-08-2007
Rik
 
Posts: n/a
Default Re: Explain :=

Lee Peedin <lpeedinDONOTSPAME@nc.rr.com> wrote:

> I tried seaching Google and the MySQL documentation for :=, but that
> seems to be some special search code as Google return nothing and
> MySQL returns a tutorial on how to use the search.
>
> So was exactly is ":=" as compared to just "="?


http://dev.mysql.com/doc/refman/5.0/...variables.html

It's an assignment operator in non-SET statements.

So, while in a lot of programming language, we have:

Assignment: =
Comparison: ==

In (My)SQL, it's:
Assignment: := or = in SET statements
Comparison: =
--
Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel
Reply With Quote
  #4 (permalink)  
Old 03-08-2007
Lee Peedin
 
Posts: n/a
Default Re: Explain :=

On Thu, 08 Mar 2007 22:08:17 +0100, Rik <luiheidsgoeroe@hotmail.com>
wrote:

>Lee Peedin <lpeedinDONOTSPAME@nc.rr.com> wrote:
>
>> I tried seaching Google and the MySQL documentation for :=, but that
>> seems to be some special search code as Google return nothing and
>> MySQL returns a tutorial on how to use the search.
>>
>> So was exactly is ":=" as compared to just "="?

>
>http://dev.mysql.com/doc/refman/5.0/...variables.html
>
>It's an assignment operator in non-SET statements.
>
>So, while in a lot of programming language, we have:
>
>Assignment: =
>Comparison: ==
>
>In (My)SQL, it's:
>Assignment: := or = in SET statements
>Comparison: =



Thanks Paul & Rik,
The page you both linked was in fact the only reference I could find
that even mentioned this and it was no more than a couple of lines
(quite hard to find).

This explaination is exactly what I was looking.

Lee
Reply With Quote
  #5 (permalink)  
Old 03-08-2007
Lee Peedin
 
Posts: n/a
Default Re: Explain :=

On Thu, 8 Mar 2007 14:54:19 -0600, "Peter H. Coffin"
<hellsop@ninehells.com> wrote:

>On Thu, 08 Mar 2007 20:03:31 GMT, Lee Peedin wrote:
>> I tried seaching Google and the MySQL documentation for :=, but that
>> seems to be some special search code as Google return nothing and
>> MySQL returns a tutorial on how to use the search.
>>
>> So was exactly is ":=" as compared to just "="?

>
>Where'd you see the reference? I'm not recalling the usage since
>recycling most of the Pascal-inhabited braincells...


In using CASE statements.

Lee
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:43 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0