Skip to content

sql select query in same table

i have a newby sql related question. let’s say i have this simple table: i’d like to query for records which have “counterparts” only, i.e. i want to get a b only if there is b a in the table but i want to skip the “back links” (which is b ahere). to sum up i’d like t…

UPDATE syntax in SQLite

I need to know if I can do this in an UPDATE statement: Or similar syntax. I’m using SQLite. Note: Nobody understands me, I just want to know if it is possible to SET separate fields to separate values. That’s all. Answer There is a (standard SQL) syntax that is similar to what you propose but as …

PL/SQL arabic displayed as?

When I query for data that have arabic text in PL/SQL Developer, It is showed as question marks (????). I am sure the data is correctly stored in DB because it shows on website properly, also on the …

PHP, ODBC, and SQL Injection

How does one prevent against SQL injections when using ODBC to connect to a MS SQL Server? odbc_prepare() doesn’t work (see my open question) due to bugs unixODBC, and there is no _escape or _quote …

SQL versus noSQL (speed)

When people are comparing SQL and noSQL, and concluding the upsides and downsides of each one, what I never hear anyone talking about is the speed. Isn’t performing SQL queries generally faster than performing noSQL queries? I mean, for me this would be a really obvious conclusion, because you should al…