Skip to content
Advertisement

Using PHP/PDO to set a NULL as value when UPDATE by array

i am executing SQL statement like this with PDO. and $_POSTData_array is like this the problem is i can’t get the null as null in db, its update as blank. any help??? UPDATE ! as per comment by Álvaro González i tried var_dump(). var_dump() is much better. I need to insist: how do you know that you’re getting NULL values

How to modify result of select statement based on values?

I am not MySQL guy just learning by doing things, I have database that stores value 0 or 1, now in grafana I want to display online if value yield from select statement is 1 and offline if value of online in select statement is 0. So far this is what I wrote But select statement through error. Answer You’re

Query JSON array using MySQL

I’m trying to get the data within the Rule column. It has a value in JSON format. I’m trying to construct the query to get the part which says “value”:8. Column name: Rule. JSON within …

How to have exact decimal values without rounding in MySQL

I have this SQL script below: What I expect like result is: 72.39. I don’t want to round the number. if I use the select round(72.396, 2) the result I get is: 72,40 How can I have what I expect without rounding using Mysql? Answer You need to use the truncate function instead of round: To answer the question in

Use SQL Field in SSIS Variable

Is it possible to reference a SQL field in your SSIS variable? For instance, I would like use the field from the “table” below Select ‘999999’ AS Physician_Profile_ID as a dynamic variable (named “…

Advertisement