Mysql: ensure than one of two columns has a value
You have two columns that accept new values, but at least one of them must not be null:
CREATE TRIGGER tr_Col1Col2 BEFORE INSERT ON myTable
FOR EACH ROW BEGIN
IF (NEW.Col1 IS NULL AND NEW.Col2 IS NULL) THEN
SIGNAL SQLSTATE '45000'
SET ME
Background zoom on hover
How to zoom a background image but not overflow on the current size.
This is the html, we need an inner div that has the image and an oute div that wont let it override.
<div class="zoom">
<div class="image" style="background: url(bg.png
How to install MySql 5.6 or Mysql 6.7
New versions of ubuntu and debian come with mariadDB as predefined mysql server. But if we need to run a version of MySQL we can do it with the following steps.
January19 Links
HTTPS In Development: A Practical Guidehttps://dev.to/kmaschta/https-in-development-a-practical-guide-175m
Basic Color Theory for Web Developers