ORA-00918: column ambiguously defined in SELECT *

A query’s projection can only have one instance of a given name. As your WHERE clause shows, you have several tables with a column called ID. Because you are selecting * your projection will have several columns called ID. Or it would have were it not for the compiler hurling ORA-00918. The solution is quite simple: you … Read more

ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)

If you are using ubuntu, you have to use the following steps to avoid this error(if there is no replication enabled): run the command vim /etc/mysql/my.cnf comment bind-address = 127.0.0.1 using the # symbol restart your mysql server once. Update In Step 1, if you cannot find bind-address in the my.cnf file, look for it in /etc/mysql/mysql.conf.d/mysqld.cnf file. Update in case of MySQL replication enabled … Read more

Oracle startup not possible – ORA-00845: MEMORY_TARGET not supported on this system – but memory size seems to be fine

You might be using Automatic Memory Management (AMM). AMM uses two initialization parameters: MEMORY_TARGET MEMORY_MAX_TARGET The shared memory file system should have enough space to accommodate the MEMORY_TARGET and MEMORY_MAX_TARGET values. To verify: In UNIX/Linux, you will have to set the shared memory file system accordingly. Verify: Set: For example,

ORA-12899: value too large for column

have a look into this blog, the problem resolved for me by changing the column datatype from varchar(100) to varchar(100 char). in my case the data contains some umlaut characters. http://gerardnico.com/wiki/database/oracle/byte_or_character

Sql query – getting rid of hard-coded values

I can think of at least two options… Or… Both let you have multiple different sets of constants. One is expandable without changing the schema, though the query still would need to change. The main advantage of either approach is that you can re-use the constants else where, but store them once in a centralised … Read more

SQLite – UPSERT *not* INSERT or REPLACE

Assuming three columns in the table: ID, NAME, ROLE BAD: This will insert or replace all columns with new values for ID=1: BAD: This will insert or replace 2 of the columns… the NAME column will be set to NULL or the default value: GOOD: Use SQLite On conflict clause UPSERT support in SQLite! UPSERT syntax was added to … Read more