Doporučuji:
Galerie fotek
Notebooky
Webdesign Praha
www.eprdel.cz
www.root.cz
Lumimont
A
CREATE DATABASE testovaci;
GRANT ALL PRIVILEGES ON testovaci.* TO 'test_user'@'%' IDENTIFIED BY 'K93276jsw' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost' IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
Cizi klic v tabulce a smazani zaznamu pokud nesedi
ALTER TABLE `nikal`
ADD CONSTRAINT `nikal_ibfk_1` FOREIGN KEY (`zbozi_id`) REFERENCES `zbozi` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
SELECT * FROM xxx WHERE id NOT IN (SELECT id FROM yyy)