MySQL Forums
Forum List  »  Newbie

Re: What does a || do?
Posted by: Andrew Gilfrin
Date: July 21, 2005 01:03AM

|| is the concat command in Oracle and a few other languages, is the code your looking at MySQL or some other language, in MySQL it's used to represent a logical OR.

This code may have been taken from an Oracle system and used against mysql. It won't fail but it won't actually do anything.

If the intention is to add the A or X to the end of the type column then

concat(view_Subcategories.type,'X')

should be used.

Andrew Gilfrin
------------------
http://gilfster.blogspot.com
My MySQL related Blog

http://www.mysqldevelopment.com
MySQL Stored Procedure,Trigger, View.... (Just about most things these days) Information

Options: ReplyQuote


Subject
Written By
Posted
July 20, 2005 12:34PM
Re: What does a || do?
July 21, 2005 01:03AM
July 21, 2005 05:00AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.