Showing posts with the label database

[FIXED] MySQL / PostgreSQL - Is this possible to perform parallel write in a transaction?

Issue If I have to update two differents rows at the same time, but one must not be updated if the …

[FIXED] Restoring from Postgres sql file

Issue I have a backup from PostgresSQL database created this way: /usr/bin/pg_dump --no-owner --n…

[FIXED] Invalid object name in SQL Management Studio

Issue I've been creating a database for class and I'm having trouble seeing my tables. I ha…

[FIXED] SQL Server - Is there any such thing called 'dirty write'?

Issue Does SQL Server allow a transaction to modify the data that is currently being modified by an…

[FIXED] How to simulate non-repeatable read (SQL Server)

Issue I read following lines of code on msdn but I am not clear with this and want to simulate. …

[FIXED] How can I compare a value from database to python input

Issue So I am trying to create a login system kinda, normal python terminal. I made a register func…

[FIXED] What's the difference between MySQLdb, mysqlclient and MySQL connector/Python?

Issue So I've been trying to do some database update with python and while setting up the whole…

[FIXED] Error: '1064 (42000): You have an error in your SQL syntax

Issue I'm coding in Python using MYSQL to create a database recipe. I have written some variabl…

[FIXED] How to access a value in a table connected by a Foreign Key

Issue Currently I have a table called Load that has a relationship to a table called Container th…

[FIXED] How to get a column value using MySQLi?

Issue I am trying to get a value from column "odznak" in "users" tab for user &…

[FIXED] Generate a random date in Oracle with DBMS_RANDOM

Issue I have this anonymous block: DECLARE V_DATA DATE; BEGIN V_DATA := '01-GEN-2000&…

[FIXED] How to add sequence number for each element in a group using a SQL query without temp tables

Issue My question is quite similar to the one posted in this link - How

[FIXED] Inserting parameters to SQL query in Oracle SQL

Issue In the following query between date time columns are repeated in multiple places and I need t…

[FIXED] query Level in database

Issue hey everyone I was reading some books about SQL injection and the author started throwing so…

[FIXED] MySQL injection protection and vulnerability signs using PHP

Issue What are the best ways to protect from MySQL injection? What are weaknesses I should look out…

[FIXED] How to do Postgresql injection in to_tsquery?

Issue so the requirement is simple, my query is: select to_tsquery('XXX'); What should b…

[FIXED] Is Spring Data JPA safe against SQL injection

Issue I am trying to find information about Spring Security JPA and if methods like .save() are pr…

[FIXED] Is there some way to inject SQL even if the ' character is deleted?

Issue If I remove all the ' characters from a SQL query, is there some other way to do a SQL in…

[FIXED] Oracle SQL Query to find e-mail addresses starting with numbers

Issue Select * from Table_name where Column_name like '1%@%' returns me all email addresse…

[FIXED] How to connect to SQL Server from command prompt with Windows authentication

Issue How can I connect to SQL Server from command prompt using Windows authentication? This comm…