Skip to content

How To Create Data Become Column [closed]

How do we write a SQL query for this situation? The structure of the table is; | Room | BLOK | DATA | | 1 | A | 12 | | 2 | A | 13 | | 1 | B | 14 | | 3 | B | 15 | …

Is escaping SQL queries like this safe?

I am currently working on a NodeJS backend script that parses incoming HTTP requests to write to and read from a MySQL database for work. I tried to protect it against SQL injections by using a kind of two-layer protection. To write to the database the user needs to provide valid JSON. This is how the JSON&#8…