Useful tips for everyday
What is trigger syntax? Explanation of syntax: create trigger [trigger_name]: Creates or replaces an existing trigger with the trigger_name. [before | after]: This specifies when…
How many connections are allowed in SQL Server? 32,767 user connections SQL Server allows a maximum of 32,767 user connections. How do I increase max…
Are views faster than queries MySQL? No, a view is simply a stored text query. You can apply WHERE and ORDER against it, the execution…
Do you need multiple select statements in MySQL? If you are sure the tables will never change, you want the data in a single row…
Is PostgreSQL outdated? PostgreSQL (aka Postgres) is old as dirt, yet over the past five years it has panned out as pure gold. Now the…
How do I change the schema of a table in PostgreSQL? You must own the table to use ALTER TABLE. To change the schema of…
What is difference between slave and master? In the master/slave communication model, master is a device or a process that has control over other devices…
Does Postgres cache query results? The results of a query are not automatically cached. If you rerun the same query — even if it’s letter-for-letter…
What is naming convention in database? I’ve already stated it in the intro, but more generally, a naming convention is a set of rules you…
Can a master have more than one slave? As of October 2013 MySQL (> 5.7. 6) supports multi-source replication. By design, a Slave cannot be…