MAKE_SET Function

MAKE_SET Function

MAKE_SET:
This function return the substring (separated by ‘,’) in the position given in first argument as bit.NULL values are not appended to the result.

Syntax:
MAKE_SET(bits,str1,str2,…)

Example:

SELECT MAKE_SET(3,’term’,'definition’,'treatment’);

Output:

term,definition
(3 means that (11 in binary). So it gives first 2 strings.”term,definition”)

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.