?
Solved

EQUIVALENT OF ANSI_NULLS ON on mysql

Posted on 2008-10-01
3
Medium Priority
?
3,330 Views
Last Modified: 2012-06-27
Hi all, we are migrating our database from mssql to mysql.
while migrating a triigger i have a code in mssql trigger as below
SET ANSI_NULLS ON
SET ANSI_NULL_DFLT_ON ON
SET ANSI_PADDING ON
SET ANSI_WARNINGS ON
SET QUOTED_IDENTIFIER ON

if i do the same in mysql trigger it is giving error as Unknown system variable 'ANSI_NULLS'.
please let me know the equivalent of the above syatem varibles in mysql.
Regards,
vijaya
0
Comment
Question by:vijji_lakshmi
1 Comment
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 22612286
MySQL does not have any of those.
>SET ANSI_NULLS ON
in MySQL, that is the behaviour anyhow.
SET ANSI_NULLS OFF -> would mean that NULL + something = something, with SET ANSI_NULLS ON   -> NULL + something = NULL

etc...
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month16 days, 9 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question