summaryrefslogtreecommitdiff
path: root/fs/dump.sql
blob: c61669cecb5b9aceb07e6770a138701b8f430925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# MySQL dump 8.12
#
# Host: localhost    Database: mysqlfs
#--------------------------------------------------------
# Server version	3.23.33

#
# Table structure for table 'functions'
#

CREATE TABLE functions (
  type enum('server','database','table','field','key') NOT NULL default 'server',
  name char(20) NOT NULL default '',
  sql char(128) NOT NULL default '',
  PRIMARY KEY (type,name)
) TYPE=MyISAM;

#
# Dumping data for table 'functions'
#

INSERT INTO functions VALUES ('server','uptime','SHOW STATUS like \'Uptime\'');
INSERT INTO functions VALUES ('server','version','SELECT VERSION()');
INSERT INTO functions VALUES ('table','count','SELECT COUNT(*) FROM `%table`');
INSERT INTO functions VALUES ('key','min','SELECT MIN(%key) FROM `%table`');
INSERT INTO functions VALUES ('key','max','SELECT MAX(%key) FROM `%table`');
INSERT INTO functions VALUES ('key','avg','SELECT AVG(%key) FROM `%table`');