Browse Source

Dodano plik z zapytaniami SQL

git-svn-id: https://svn.pioder.pl/sg-svn@2 3ed2631f-fe0d-47e0-9194-a46bc0f18ee8
master
pioder 15 years ago
parent
commit
6c965bdcf3
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      robocze/zapytania.sql

+ 22
- 0
robocze/zapytania.sql View File

@ -0,0 +1,22 @@
# zapytania do Bazy
# Galeria Suczawy 2009
# 2009 (c) PioDer
# $Id$
CREATE TABLE `photos` (
`id` SMALLINT( 4 ) NOT NULL ,
`thumb_name` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
`photo_name` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
`author` VARCHAR( 30 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
`description` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
PRIMARY KEY ( `id` )
) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE TABLE `admins` (
`id` SMALLINT( 1 ) NOT NULL ,
`nick` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
`password` VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
`email` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
`IP` VARCHAR( 14 ) NOT NULL ,
PRIMARY KEY ( `id` )
) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;

Loading…
Cancel
Save