text
stringlengths 1
1.05M
|
|---|
/*
WARNING: This SCRIPT USES SQL TEMPLATE PARAMETERS.
Be sure to hit CTRL+SHIFT+M in Query Analyzer if running manually.
This script imports data from a .TEXT 0.95 database
into the Subtext database.
This script is written with the following assumptions:
1) it is being run from the dotText schema (so be sure to connect to it)
2) both DBs are on the same server and have the same user/pwd.
3) i think there was something else?
TODOs:
1) figure out how to take advantage of 2 seperate DB connections
possibly by using the USE <databaseName> keyword?
2) clean up this UGLY SQL and format it for readability.
3) I'm sure there's a lot more to be done...
DECLARE @user_name varchar(30)
SELECT @user_name = user_name()
*/
-- subtext_Config
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Config] ON
INSERT INTO [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Config]
(
BlogId
, UserName
, [Password]
, Email
, Title
, SubTitle
, Skin
, [Application]
, [Host]
, Author
, TimeZone
, IsActive
, [Language]
, ItemCount
, LastUpdated
, News
, SecondaryCss
, PostCount
, StoryCount
, PingTrackCount
, CommentCount
, Flag
, SkinCssFile
, BlogGroup
, LicenseUrl
, DaysTillCommentsClose
, CommentDelayInMinutes
)
SELECT
BlogId
, UserName
, [Password]
, Email
, Title
, SubTitle
, Skin
, [Application]
, [Host]
, Author
, TimeZone
, IsActive
, [Language]
, ItemCount
, LastUpdated
, News
, SecondaryCss
, PostCount
, StoryCount
, PingTrackCount
, CommentCount
, Flag
, SkinCssFile
, ISNULL(BlogGroup, 1)
, null -- LicenseUrl
, null -- DaysTillCommentsClose
, null -- CommentDelayInMinutes
FROM [<dottext_db_name,varchar,DotTextData>].[<dotTextDbUser,varchar,dbo>].[blog_Config]
WHERE 1=1
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Config] OFF
GO
UPDATE [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Config]
SET RecentCommentsLength = 50 WHERE 1=1
GO
-- subtext_Content
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Content] ON
INSERT INTO [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Content]
( [ID], Title, DateAdded, PostType, Author, Email, BlogId, [Description],
DateUpdated, [Text], FeedBackCount, PostConfig, EntryName,
DateSyndicated )
SELECT
[ID], Title, DateAdded, PostType, Author, Email, BlogId, [Description],
DateUpdated, [Text], ISNULL(FeedBackCount, 0), PostConfig, EntryName, DateUpdated
FROM [<dottext_db_name,varchar,DotTextData>].[<dotTextDbUser,varchar,dbo>].[blog_Content]
WHERE (PostType <> 3 AND PostType <> 4) -- don't insert comments or track/ping backs, they belong in the subtext_Feedback table
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Content] OFF
GO
UPDATE [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Content]
SET DateSyndicated = DateUpdated
-- Post is syndicated and active
WHERE PostConfig & 16 = 16 AND PostConfig & 1 = 1
GO
/* Still need to update the ContentChecksumHash column
for all of the imported Subtext records */
-- subtext_Feedback
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_FeedBack] ON
INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_FeedBack]
([Id],[Title],[Body],[BlogId],[EntryId],[Author], [IsBlogAuthor], [Email], [Url], [FeedbackType], [StatusFlag],
[CommentAPI], [Referrer], [IpAddress], [UserAgent], [FeedbackChecksumHash], [DateCreated], [DateModified])
SELECT [Id] = [ID]
, Title
, [Body] = [Text]
, BlogId = BlogID
, EntryId = ParentID
, Author = LEFT(Author, 32)
, 0
, Email
, Url = TitleUrl
, FeedbackType = CASE PostType WHEN 3 THEN 1 ELSE 2 END
, StatusFlag = 1
, CommentAPI = 0
, Referrer = NULL
, IpAddress = SUBSTRING(SourceName,0,16)
, UserAgent = NULL
, FeedbackChecksumHash = ''
, DateCreated = DateAdded
, DateModified = getdate()
FROM [<dottext_db_name,varchar,DotTextData>].[<dotTextDbUser,varchar,dbo>].[blog_Content]
WHERE (PostType = 3 OR PostType = 4) -- Comment or PingBack
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_FeedBack] OFF
GO
UPDATE [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_FeedBack]
SET EntryId = NULL WHERE EntryId = -1
GO
-- subtext_EntryViewCount
INSERT INTO [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_EntryViewCount]
( EntryID, BlogId, WebCount, AggCount, WebLastUpdated, AggLastUpdated )
SELECT
EntryID, BlogId, WebCount, AggCount, WebLastUpdated, AggLastUpdated
FROM [<dottext_db_name,varchar,DotTextData>].[<dotTextDbUser,varchar,dbo>].[blog_EntryViewCount]
WHERE 1=1
GO
-- subtext_LinkCategories
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_LinkCategories] ON
INSERT INTO [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_LinkCategories]
( CategoryID, Title, Active, BlogId, CategoryType, Description )
SELECT
CategoryID, Title, Active, BlogId, CategoryType, Description
FROM [<dottext_db_name,varchar,DotTextData>].[<dotTextDbUser,varchar,dbo>].[blog_LinkCategories]
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_LinkCategories] OFF
GO
-- From subText 1.9.00 install script
UPDATE [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_LinkCategories] SET CategoryType = 5 WHERE CategoryType = 0
GO
-- subtext_KeyWords
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_KeyWords] ON
INSERT INTO [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_KeyWords]
( KeyWordID, Word, [Text], ReplaceFirstTimeOnly, OpenInNewWindow, Url, Title, BlogId, CaseSensitive )
SELECT
KeyWordID, Word, [Text], ReplaceFirstTimeOnly, OpenInNewWindow, Url, Title, BlogId, CaseSensitive
FROM [<dottext_db_name,varchar,DotTextData>].[<dotTextDbUser,varchar,dbo>].[blog_KeyWords]
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_KeyWords] OFF
GO
-- subtext_Images
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Images] ON
INSERT INTO [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Images]
( ImageID, Title, CategoryID, Width, Height, [File], Active, BlogId )
SELECT
ImageID, Title, CategoryID, Width, Height, [File], Active, BlogId
FROM [<dottext_db_name,varchar,DotTextData>].[<dotTextDbUser,varchar,dbo>].[blog_Images]
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Images] OFF
GO
-- subtext_Links
/*
Due to the Foreign Key constraints between subtext_Links.PostID --> subtext_Content.ID
AND subtext_Links.CategoryID --> subtext_LinkCategories.CategoryID, we have to perform
sub queries to specify NULL for these columns if the corresponding data does not exist.
*/
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Links] ON
INSERT INTO [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Links]
(
LinkID
, Title
, Url
, Rss
, Active
, CategoryID
, BlogId
, PostID
, NewWindow
)
SELECT
LinkID
, Title
, Url
, Rss
, Active
, CategoryID = CASE
WHEN NOT EXISTS
(
SELECT slc.[CategoryID]
FROM [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_LinkCategories] slc
WHERE slc.[CategoryID] = [<dottext_db_name,varchar,DotTextData>].[<dotTextDbUser,varchar,dbo>].[blog_Links].CategoryID
)
THEN NULL
ELSE CategoryID
END
, BlogId
, PostID = CASE
WHEN NOT EXISTS
(
SELECT sct.[ID]
FROM [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Content] sct
WHERE sct.[ID] = [<dottext_db_name,varchar,DotTextData>].[<dotTextDbUser,varchar,dbo>].[blog_Links].PostID
)
THEN NULL
ELSE PostID
END
, NewWindow
FROM [<dottext_db_name,varchar,DotTextData>].[<dotTextDbUser,varchar,dbo>].[blog_Links]
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Links] OFF
GO
-- subtext_URLs
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_URLs] ON
INSERT INTO [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_URLs]
( UrlID, Url )
SELECT
UrlID, Url
FROM [<dottext_db_name,varchar,DotTextData>].[<dotTextDbUser,varchar,dbo>].[blog_URLs]
SET IDENTITY_INSERT [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_URLs] OFF
GO
-- subtext_Referrals
/*
Due to the stranded Referral records that we've seen coming from
dotText095 db's, we need the extra WHERE clause below. This will
prevent any Refferral records that have a bad UrlID from breaking
the FK constraint to the URLs table.
*/
INSERT INTO [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Referrals]
( EntryID, BlogId, UrlID, [Count], LastUpdated )
SELECT
EntryID, BlogId, UrlID, [Count], LastUpdated
FROM [<dottext_db_name,varchar,DotTextData>].[<dotTextDbUser,varchar,dbo>].[blog_Referrals]
WHERE UrlID IN (SELECT UrlID FROM [<dottext_db_name,varchar,DotTextData>].[<dotTextDbUser,varchar,dbo>].[blog_URLs])
AND EntryId IN (SELECT [ID] FROM [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Content])
GO
-- Now we need to do a little "cleanup" to remove any references to comments/trackback from
-- the subtext_Referrals table.
DELETE FROM [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Referrals]
WHERE EXISTS (SELECT * FROM [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Content] sC
WHERE (sc.PostType = 3 OR sC.PostType = 4) AND [<subtext_db_name,varchar,SubtextData>].[<dbUser,varchar,dbo>].[subtext_Referrals].EntryID = sc.[ID])
GO
-- DONE
|
-- 2019-08-21T12:13:50.955Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET DisplayLogic='@IsDropShip@=Y',Updated=TO_TIMESTAMP('2019-08-21 15:13:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57734
;
|
CREATE TABLE `fine` (
`id` int(10) unsigned NOT NULL,
`name` varchar(30) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
|
CREATE TRIGGER testTrigger ON test1
FOR INSERT
AS
INSERT INTO test
(id,name,status)
SELECT
id,name,status
FROM inserted
go
|
-- Feb 3, 2017
-- adding study tagging system
CREATE TABLE qiita.study_tags (
study_tag_id bigserial NOT NULL,
email varchar NOT NULL,
study_tag varchar NOT NULL,
CONSTRAINT pk_study_tag UNIQUE ( study_tag ),
CONSTRAINT pk_study_tag_id PRIMARY KEY ( study_tag_id )
) ;
CREATE INDEX idx_study_tag_id ON qiita.study_tags ( study_tag_id ) ;
ALTER TABLE qiita.study_tags ADD CONSTRAINT fk_study_tags FOREIGN KEY ( email ) REFERENCES qiita.qiita_user( email );
CREATE TABLE qiita.per_study_tags (
study_tag_id bigint NOT NULL,
study_id bigint NOT NULL,
CONSTRAINT pk_per_study_tags PRIMARY KEY ( study_tag_id, study_id )
) ;
|
DROP FUNCTION IF EXISTS grest.pool_history (text, uinteger);
CREATE FUNCTION grest.pool_history (_pool_bech32 text, _epoch_no uinteger DEFAULT NULL)
RETURNS TABLE (
epoch_no bigint,
active_stake text,
active_stake_pct numeric,
saturation_pct numeric,
block_cnt bigint,
delegator_cnt bigint,
margin double precision,
fixed_cost text,
pool_fees text,
deleg_rewards text,
epoch_ros numeric
)
LANGUAGE plpgsql
AS $$
#variable_conflict use_column
DECLARE
BEGIN
RETURN QUERY
SELECT epoch_no, active_stake::text, active_stake_pct, saturation_pct, block_cnt,
delegator_cnt, pool_fee_variable as margin, pool_fee_fixed::text as fixed_cost, pool_fees::text,
deleg_rewards::text, epoch_ros
FROM grest.pool_history_cache phc
WHERE phc.pool_id = _pool_bech32 and
(_epoch_no is null or
phc.epoch_no = _epoch_no)
ORDER by phc.epoch_no desc;
END;
$$;
COMMENT ON FUNCTION grest.pool_history IS 'Pool block production and reward history for a given epoch (or all epochs if not specified)';
|
CREATE TABLE list (id VARCHAR(2) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "list" ("id", "value") VALUES (E'AF', E'Afganistan');
INSERT INTO "list" ("id", "value") VALUES (E'AL', E'Albanija');
INSERT INTO "list" ("id", "value") VALUES (E'DZ', E'Alžir');
INSERT INTO "list" ("id", "value") VALUES (E'AS', E'Američka Samoa');
INSERT INTO "list" ("id", "value") VALUES (E'VI', E'Američki Djevičanski Otoci');
INSERT INTO "list" ("id", "value") VALUES (E'AD', E'Andora');
INSERT INTO "list" ("id", "value") VALUES (E'AO', E'Angola');
INSERT INTO "list" ("id", "value") VALUES (E'AI', E'Angvila');
INSERT INTO "list" ("id", "value") VALUES (E'AQ', E'Antarktika');
INSERT INTO "list" ("id", "value") VALUES (E'AG', E'Antigua i Barbuda');
INSERT INTO "list" ("id", "value") VALUES (E'AR', E'Argentina');
INSERT INTO "list" ("id", "value") VALUES (E'AM', E'Armenija');
INSERT INTO "list" ("id", "value") VALUES (E'AW', E'Aruba');
INSERT INTO "list" ("id", "value") VALUES (E'AU', E'Australija');
INSERT INTO "list" ("id", "value") VALUES (E'AT', E'Austrija');
INSERT INTO "list" ("id", "value") VALUES (E'AZ', E'Azerbajdžan');
INSERT INTO "list" ("id", "value") VALUES (E'BS', E'Bahami');
INSERT INTO "list" ("id", "value") VALUES (E'BH', E'Bahrein');
INSERT INTO "list" ("id", "value") VALUES (E'BD', E'Bangladeš');
INSERT INTO "list" ("id", "value") VALUES (E'BB', E'Barbados');
INSERT INTO "list" ("id", "value") VALUES (E'BE', E'Belgija');
INSERT INTO "list" ("id", "value") VALUES (E'BZ', E'Belize');
INSERT INTO "list" ("id", "value") VALUES (E'BJ', E'Benin');
INSERT INTO "list" ("id", "value") VALUES (E'BM', E'Bermuda');
INSERT INTO "list" ("id", "value") VALUES (E'BY', E'Bjelorusija');
INSERT INTO "list" ("id", "value") VALUES (E'BW', E'Bocvana');
INSERT INTO "list" ("id", "value") VALUES (E'BO', E'Bolivija');
INSERT INTO "list" ("id", "value") VALUES (E'BA', E'Bosna i Hercegovina');
INSERT INTO "list" ("id", "value") VALUES (E'CX', E'Božićni Otok');
INSERT INTO "list" ("id", "value") VALUES (E'BR', E'Brazil');
INSERT INTO "list" ("id", "value") VALUES (E'VG', E'Britanski Djevičanski Otoci');
INSERT INTO "list" ("id", "value") VALUES (E'IO', E'Britanski Indijskooceanski Teritorij');
INSERT INTO "list" ("id", "value") VALUES (E'BN', E'Brunej');
INSERT INTO "list" ("id", "value") VALUES (E'BG', E'Bugarska');
INSERT INTO "list" ("id", "value") VALUES (E'BF', E'Burkina Faso');
INSERT INTO "list" ("id", "value") VALUES (E'BI', E'Burundi');
INSERT INTO "list" ("id", "value") VALUES (E'BT', E'Butan');
INSERT INTO "list" ("id", "value") VALUES (E'EA', E'Ceuta i Melilla');
INSERT INTO "list" ("id", "value") VALUES (E'CY', E'Cipar');
INSERT INTO "list" ("id", "value") VALUES (E'CK', E'Cookovi Otoci');
INSERT INTO "list" ("id", "value") VALUES (E'ME', E'Crna Gora');
INSERT INTO "list" ("id", "value") VALUES (E'CW', E'Curaçao');
INSERT INTO "list" ("id", "value") VALUES (E'TD', E'Čad');
INSERT INTO "list" ("id", "value") VALUES (E'CZ', E'Češka Republika');
INSERT INTO "list" ("id", "value") VALUES (E'CL', E'Čile');
INSERT INTO "list" ("id", "value") VALUES (E'DK', E'Danska');
INSERT INTO "list" ("id", "value") VALUES (E'DG', E'Diego Garcia');
INSERT INTO "list" ("id", "value") VALUES (E'DM', E'Dominika');
INSERT INTO "list" ("id", "value") VALUES (E'DO', E'Dominikanska Republika');
INSERT INTO "list" ("id", "value") VALUES (E'DJ', E'Džibuti');
INSERT INTO "list" ("id", "value") VALUES (E'EG', E'Egipat');
INSERT INTO "list" ("id", "value") VALUES (E'EC', E'Ekvador');
INSERT INTO "list" ("id", "value") VALUES (E'GQ', E'Ekvatorska Gvineja');
INSERT INTO "list" ("id", "value") VALUES (E'ER', E'Eritreja');
INSERT INTO "list" ("id", "value") VALUES (E'EE', E'Estonija');
INSERT INTO "list" ("id", "value") VALUES (E'ET', E'Etiopija');
INSERT INTO "list" ("id", "value") VALUES (E'FK', E'Falklandski Otoci');
INSERT INTO "list" ("id", "value") VALUES (E'FO', E'Farski Otoci');
INSERT INTO "list" ("id", "value") VALUES (E'FJ', E'Fidži');
INSERT INTO "list" ("id", "value") VALUES (E'PH', E'Filipini');
INSERT INTO "list" ("id", "value") VALUES (E'FI', E'Finska');
INSERT INTO "list" ("id", "value") VALUES (E'FR', E'Francuska');
INSERT INTO "list" ("id", "value") VALUES (E'GF', E'Francuska Gvajana');
INSERT INTO "list" ("id", "value") VALUES (E'PF', E'Francuska Polinezija');
INSERT INTO "list" ("id", "value") VALUES (E'TF', E'Francuske Južne i Antarktičke Zemlje');
INSERT INTO "list" ("id", "value") VALUES (E'GA', E'Gabon');
INSERT INTO "list" ("id", "value") VALUES (E'GM', E'Gambija');
INSERT INTO "list" ("id", "value") VALUES (E'GH', E'Gana');
INSERT INTO "list" ("id", "value") VALUES (E'GI', E'Gibraltar');
INSERT INTO "list" ("id", "value") VALUES (E'GR', E'Grčka');
INSERT INTO "list" ("id", "value") VALUES (E'GD', E'Grenada');
INSERT INTO "list" ("id", "value") VALUES (E'GL', E'Grenland');
INSERT INTO "list" ("id", "value") VALUES (E'GE', E'Gruzija');
INSERT INTO "list" ("id", "value") VALUES (E'GP', E'Guadalupa');
INSERT INTO "list" ("id", "value") VALUES (E'GU', E'Guam');
INSERT INTO "list" ("id", "value") VALUES (E'GG', E'Guernsey');
INSERT INTO "list" ("id", "value") VALUES (E'GY', E'Gvajana');
INSERT INTO "list" ("id", "value") VALUES (E'GT', E'Gvatemala');
INSERT INTO "list" ("id", "value") VALUES (E'GN', E'Gvineja');
INSERT INTO "list" ("id", "value") VALUES (E'GW', E'Gvineja Bisau');
INSERT INTO "list" ("id", "value") VALUES (E'HT', E'Haiti');
INSERT INTO "list" ("id", "value") VALUES (E'HN', E'Honduras');
INSERT INTO "list" ("id", "value") VALUES (E'HK', E'Hong Kong PUP Kina');
INSERT INTO "list" ("id", "value") VALUES (E'HR', E'Hrvatska');
INSERT INTO "list" ("id", "value") VALUES (E'IN', E'Indija');
INSERT INTO "list" ("id", "value") VALUES (E'ID', E'Indonezija');
INSERT INTO "list" ("id", "value") VALUES (E'IQ', E'Irak');
INSERT INTO "list" ("id", "value") VALUES (E'IR', E'Iran');
INSERT INTO "list" ("id", "value") VALUES (E'IE', E'Irska');
INSERT INTO "list" ("id", "value") VALUES (E'IS', E'Island');
INSERT INTO "list" ("id", "value") VALUES (E'TL', E'Istočni Timor');
INSERT INTO "list" ("id", "value") VALUES (E'IT', E'Italija');
INSERT INTO "list" ("id", "value") VALUES (E'IL', E'Izrael');
INSERT INTO "list" ("id", "value") VALUES (E'JM', E'Jamajka');
INSERT INTO "list" ("id", "value") VALUES (E'JP', E'Japan');
INSERT INTO "list" ("id", "value") VALUES (E'YE', E'Jemen');
INSERT INTO "list" ("id", "value") VALUES (E'JE', E'Jersey');
INSERT INTO "list" ("id", "value") VALUES (E'JO', E'Jordan');
INSERT INTO "list" ("id", "value") VALUES (E'GS', E'Južna Georgija i Južni Sendvički Otoci');
INSERT INTO "list" ("id", "value") VALUES (E'KR', E'Južna Koreja');
INSERT INTO "list" ("id", "value") VALUES (E'SS', E'Južni Sudan');
INSERT INTO "list" ("id", "value") VALUES (E'ZA', E'Južnoafrička Republika');
INSERT INTO "list" ("id", "value") VALUES (E'KY', E'Kajmanski Otoci');
INSERT INTO "list" ("id", "value") VALUES (E'KH', E'Kambodža');
INSERT INTO "list" ("id", "value") VALUES (E'CM', E'Kamerun');
INSERT INTO "list" ("id", "value") VALUES (E'CA', E'Kanada');
INSERT INTO "list" ("id", "value") VALUES (E'IC', E'Kanarski Otoci');
INSERT INTO "list" ("id", "value") VALUES (E'BQ', E'Karipski otoci Nizozemske');
INSERT INTO "list" ("id", "value") VALUES (E'QA', E'Katar');
INSERT INTO "list" ("id", "value") VALUES (E'KZ', E'Kazahstan');
INSERT INTO "list" ("id", "value") VALUES (E'KE', E'Kenija');
INSERT INTO "list" ("id", "value") VALUES (E'CN', E'Kina');
INSERT INTO "list" ("id", "value") VALUES (E'KG', E'Kirgistan');
INSERT INTO "list" ("id", "value") VALUES (E'KI', E'Kiribati');
INSERT INTO "list" ("id", "value") VALUES (E'CC', E'Kokosovi (Keeling) Otoci');
INSERT INTO "list" ("id", "value") VALUES (E'CO', E'Kolumbija');
INSERT INTO "list" ("id", "value") VALUES (E'KM', E'Komori');
INSERT INTO "list" ("id", "value") VALUES (E'CG', E'Kongo - Brazzaville');
INSERT INTO "list" ("id", "value") VALUES (E'CD', E'Kongo - Kinshasa');
INSERT INTO "list" ("id", "value") VALUES (E'XK', E'Kosovo');
INSERT INTO "list" ("id", "value") VALUES (E'CR', E'Kostarika');
INSERT INTO "list" ("id", "value") VALUES (E'CU', E'Kuba');
INSERT INTO "list" ("id", "value") VALUES (E'KW', E'Kuvajt');
INSERT INTO "list" ("id", "value") VALUES (E'LA', E'Laos');
INSERT INTO "list" ("id", "value") VALUES (E'LV', E'Latvija');
INSERT INTO "list" ("id", "value") VALUES (E'LS', E'Lesoto');
INSERT INTO "list" ("id", "value") VALUES (E'LB', E'Libanon');
INSERT INTO "list" ("id", "value") VALUES (E'LR', E'Liberija');
INSERT INTO "list" ("id", "value") VALUES (E'LY', E'Libija');
INSERT INTO "list" ("id", "value") VALUES (E'LI', E'Lihtenštajn');
INSERT INTO "list" ("id", "value") VALUES (E'LT', E'Litva');
INSERT INTO "list" ("id", "value") VALUES (E'LU', E'Luksemburg');
INSERT INTO "list" ("id", "value") VALUES (E'MG', E'Madagaskar');
INSERT INTO "list" ("id", "value") VALUES (E'HU', E'Mađarska');
INSERT INTO "list" ("id", "value") VALUES (E'MO', E'Makao PUP Kina');
INSERT INTO "list" ("id", "value") VALUES (E'MK', E'Makedonija');
INSERT INTO "list" ("id", "value") VALUES (E'MW', E'Malavi');
INSERT INTO "list" ("id", "value") VALUES (E'MV', E'Maldivi');
INSERT INTO "list" ("id", "value") VALUES (E'MY', E'Malezija');
INSERT INTO "list" ("id", "value") VALUES (E'ML', E'Mali');
INSERT INTO "list" ("id", "value") VALUES (E'UM', E'Mali udaljeni otoci SAD-a');
INSERT INTO "list" ("id", "value") VALUES (E'MT', E'Malta');
INSERT INTO "list" ("id", "value") VALUES (E'MA', E'Maroko');
INSERT INTO "list" ("id", "value") VALUES (E'MH', E'Maršalovi Otoci');
INSERT INTO "list" ("id", "value") VALUES (E'MQ', E'Martinique');
INSERT INTO "list" ("id", "value") VALUES (E'MU', E'Mauricijus');
INSERT INTO "list" ("id", "value") VALUES (E'MR', E'Mauritanija');
INSERT INTO "list" ("id", "value") VALUES (E'YT', E'Mayotte');
INSERT INTO "list" ("id", "value") VALUES (E'MX', E'Meksiko');
INSERT INTO "list" ("id", "value") VALUES (E'MM', E'Mijanmar (Burma)');
INSERT INTO "list" ("id", "value") VALUES (E'FM', E'Mikronezija');
INSERT INTO "list" ("id", "value") VALUES (E'MD', E'Moldavija');
INSERT INTO "list" ("id", "value") VALUES (E'MC', E'Monako');
INSERT INTO "list" ("id", "value") VALUES (E'MN', E'Mongolija');
INSERT INTO "list" ("id", "value") VALUES (E'MS', E'Montserrat');
INSERT INTO "list" ("id", "value") VALUES (E'MZ', E'Mozambik');
INSERT INTO "list" ("id", "value") VALUES (E'NA', E'Namibija');
INSERT INTO "list" ("id", "value") VALUES (E'NR', E'Nauru');
INSERT INTO "list" ("id", "value") VALUES (E'NP', E'Nepal');
INSERT INTO "list" ("id", "value") VALUES (E'NE', E'Niger');
INSERT INTO "list" ("id", "value") VALUES (E'NG', E'Nigerija');
INSERT INTO "list" ("id", "value") VALUES (E'NI', E'Nikaragva');
INSERT INTO "list" ("id", "value") VALUES (E'NU', E'Niue');
INSERT INTO "list" ("id", "value") VALUES (E'NL', E'Nizozemska');
INSERT INTO "list" ("id", "value") VALUES (E'NO', E'Norveška');
INSERT INTO "list" ("id", "value") VALUES (E'NC', E'Nova Kaledonija');
INSERT INTO "list" ("id", "value") VALUES (E'NZ', E'Novi Zeland');
INSERT INTO "list" ("id", "value") VALUES (E'DE', E'Njemačka');
INSERT INTO "list" ("id", "value") VALUES (E'CI', E'Obala Bjelokosti');
INSERT INTO "list" ("id", "value") VALUES (E'OM', E'Oman');
INSERT INTO "list" ("id", "value") VALUES (E'AX', E'Otoci Aland');
INSERT INTO "list" ("id", "value") VALUES (E'PN', E'Otoci Pitcairn');
INSERT INTO "list" ("id", "value") VALUES (E'TC', E'Otoci Turks i Caicos');
INSERT INTO "list" ("id", "value") VALUES (E'AC', E'Otok Ascension');
INSERT INTO "list" ("id", "value") VALUES (E'IM', E'Otok Man');
INSERT INTO "list" ("id", "value") VALUES (E'NF', E'Otok Norfolk');
INSERT INTO "list" ("id", "value") VALUES (E'PK', E'Pakistan');
INSERT INTO "list" ("id", "value") VALUES (E'PW', E'Palau');
INSERT INTO "list" ("id", "value") VALUES (E'PS', E'Palestinsko Područje');
INSERT INTO "list" ("id", "value") VALUES (E'PA', E'Panama');
INSERT INTO "list" ("id", "value") VALUES (E'PG', E'Papua Nova Gvineja');
INSERT INTO "list" ("id", "value") VALUES (E'PY', E'Paragvaj');
INSERT INTO "list" ("id", "value") VALUES (E'PE', E'Peru');
INSERT INTO "list" ("id", "value") VALUES (E'PL', E'Poljska');
INSERT INTO "list" ("id", "value") VALUES (E'PR', E'Portoriko');
INSERT INTO "list" ("id", "value") VALUES (E'PT', E'Portugal');
INSERT INTO "list" ("id", "value") VALUES (E'RE', E'Reunion');
INSERT INTO "list" ("id", "value") VALUES (E'RW', E'Ruanda');
INSERT INTO "list" ("id", "value") VALUES (E'RO', E'Rumunjska');
INSERT INTO "list" ("id", "value") VALUES (E'RU', E'Rusija');
INSERT INTO "list" ("id", "value") VALUES (E'SB', E'Salomonski Otoci');
INSERT INTO "list" ("id", "value") VALUES (E'SV', E'Salvador');
INSERT INTO "list" ("id", "value") VALUES (E'WS', E'Samoa');
INSERT INTO "list" ("id", "value") VALUES (E'SM', E'San Marino');
INSERT INTO "list" ("id", "value") VALUES (E'SA', E'Saudijska Arabija');
INSERT INTO "list" ("id", "value") VALUES (E'SC', E'Sejšeli');
INSERT INTO "list" ("id", "value") VALUES (E'SN', E'Senegal');
INSERT INTO "list" ("id", "value") VALUES (E'SL', E'Sijera Leone');
INSERT INTO "list" ("id", "value") VALUES (E'SG', E'Singapur');
INSERT INTO "list" ("id", "value") VALUES (E'SX', E'Sint Maarten');
INSERT INTO "list" ("id", "value") VALUES (E'SY', E'Sirija');
INSERT INTO "list" ("id", "value") VALUES (E'US', E'Sjedinjene Američke Države');
INSERT INTO "list" ("id", "value") VALUES (E'KP', E'Sjeverna Koreja');
INSERT INTO "list" ("id", "value") VALUES (E'MP', E'Sjeverni Marijanski Otoci');
INSERT INTO "list" ("id", "value") VALUES (E'SK', E'Slovačka');
INSERT INTO "list" ("id", "value") VALUES (E'SI', E'Slovenija');
INSERT INTO "list" ("id", "value") VALUES (E'SO', E'Somalija');
INSERT INTO "list" ("id", "value") VALUES (E'RS', E'Srbija');
INSERT INTO "list" ("id", "value") VALUES (E'CF', E'Srednjoafrička Republika');
INSERT INTO "list" ("id", "value") VALUES (E'SD', E'Sudan');
INSERT INTO "list" ("id", "value") VALUES (E'SR', E'Surinam');
INSERT INTO "list" ("id", "value") VALUES (E'SJ', E'Svalbard i Jan Mayen');
INSERT INTO "list" ("id", "value") VALUES (E'SZ', E'Svazi');
INSERT INTO "list" ("id", "value") VALUES (E'SH', E'Sveta Helena');
INSERT INTO "list" ("id", "value") VALUES (E'LC', E'Sveta Lucija');
INSERT INTO "list" ("id", "value") VALUES (E'VA', E'Sveta Stolica');
INSERT INTO "list" ("id", "value") VALUES (E'BL', E'Sveti Bartolomej');
INSERT INTO "list" ("id", "value") VALUES (E'KN', E'Sveti Kristofor i Nevis');
INSERT INTO "list" ("id", "value") VALUES (E'MF', E'Sveti Martin');
INSERT INTO "list" ("id", "value") VALUES (E'PM', E'Sveti Petar i Mikelon');
INSERT INTO "list" ("id", "value") VALUES (E'ST', E'Sveti Toma i Princip');
INSERT INTO "list" ("id", "value") VALUES (E'VC', E'Sveti Vincent i Grenadini');
INSERT INTO "list" ("id", "value") VALUES (E'ES', E'Španjolska');
INSERT INTO "list" ("id", "value") VALUES (E'LK', E'Šri Lanka');
INSERT INTO "list" ("id", "value") VALUES (E'SE', E'Švedska');
INSERT INTO "list" ("id", "value") VALUES (E'CH', E'Švicarska');
INSERT INTO "list" ("id", "value") VALUES (E'TJ', E'Tadžikistan');
INSERT INTO "list" ("id", "value") VALUES (E'TH', E'Tajland');
INSERT INTO "list" ("id", "value") VALUES (E'TW', E'Tajvan');
INSERT INTO "list" ("id", "value") VALUES (E'TZ', E'Tanzanija');
INSERT INTO "list" ("id", "value") VALUES (E'TG', E'Togo');
INSERT INTO "list" ("id", "value") VALUES (E'TK', E'Tokelau');
INSERT INTO "list" ("id", "value") VALUES (E'TO', E'Tonga');
INSERT INTO "list" ("id", "value") VALUES (E'TT', E'Trinidad i Tobago');
INSERT INTO "list" ("id", "value") VALUES (E'TA', E'Tristan da Cunha');
INSERT INTO "list" ("id", "value") VALUES (E'TN', E'Tunis');
INSERT INTO "list" ("id", "value") VALUES (E'TM', E'Turkmenistan');
INSERT INTO "list" ("id", "value") VALUES (E'TR', E'Turska');
INSERT INTO "list" ("id", "value") VALUES (E'TV', E'Tuvalu');
INSERT INTO "list" ("id", "value") VALUES (E'UG', E'Uganda');
INSERT INTO "list" ("id", "value") VALUES (E'AE', E'Ujedinjeni Arapski Emirati');
INSERT INTO "list" ("id", "value") VALUES (E'UA', E'Ukrajina');
INSERT INTO "list" ("id", "value") VALUES (E'UY', E'Urugvaj');
INSERT INTO "list" ("id", "value") VALUES (E'UZ', E'Uzbekistan');
INSERT INTO "list" ("id", "value") VALUES (E'VU', E'Vanuatu');
INSERT INTO "list" ("id", "value") VALUES (E'GB', E'Velika Britanija');
INSERT INTO "list" ("id", "value") VALUES (E'VE', E'Venezuela');
INSERT INTO "list" ("id", "value") VALUES (E'VN', E'Vijetnam');
INSERT INTO "list" ("id", "value") VALUES (E'WF', E'Wallis i Futuna');
INSERT INTO "list" ("id", "value") VALUES (E'ZM', E'Zambija');
INSERT INTO "list" ("id", "value") VALUES (E'EH', E'Zapadna Sahara');
INSERT INTO "list" ("id", "value") VALUES (E'CV', E'Zelenortska Republika');
INSERT INTO "list" ("id", "value") VALUES (E'ZW', E'Zimbabve');
|
insert into authorities (name) values ('READ');
insert into authorities (name) values ('WRITE');
insert into authorities (name) values ('DELETE');
insert into roles (name) values ('ROLE_SYSADMIN');
insert into roles (name) values ('ROLE_ADMIN');
insert into roles (name) values ('ROLE_USER');
insert into roles_authorities (roles_id, authorities_id) values (1, 1);
insert into roles_authorities (roles_id, authorities_id) values (1, 2);
insert into roles_authorities (roles_id, authorities_id) values (1, 3);
insert into roles_authorities (roles_id, authorities_id) values (2, 1);
insert into roles_authorities (roles_id, authorities_id) values (2, 2);
insert into roles_authorities (roles_id, authorities_id) values (2, 3);
insert into roles_authorities (roles_id, authorities_id) values (3, 1);
insert into roles_authorities (roles_id, authorities_id) values (3, 2);
-- Insert admin with password admin123
insert into users (email, encrypted_password, first_name, last_name, user_id, roles_id)
values('admin@company.com', '$2a$10$du2nmK2KSij1fo5drDVsxO5HJ04k0mVC9.dqhO84x5YiQUkepny5O', 'admin', 'admin', 'admin_123', 2);
-- Insert user with password user123
insert into users (email, encrypted_password, first_name, last_name, user_id, roles_id)
values('user1@company.com', '$2a$10$PKuigufeT.mDX8BsCjhx/.f5plwHDZwHRKjThvdYmgTnWsPT.22A2', 'user1', 'user', 'user_1', 3);
insert into todos (description, is_done, target_date, users_id) values ('todo', false, '2022-04-22T15:00:00+05:30', 2);
|
SELECT SUM("Generico_5"."InversionUS") AS "sum:Calculation_0061002123102817:ok", CAST(EXTRACT(YEAR FROM "Generico_5"."FECHA") AS BIGINT) AS "yr:FECHA:ok" FROM "Generico_5" WHERE ((CAST(EXTRACT(YEAR FROM "Generico_5"."FECHA") AS BIGINT) >= 2010) AND (CAST(EXTRACT(YEAR FROM "Generico_5"."FECHA") AS BIGINT) <= 2015) AND ("Generico_5"."Anunciante" IN ('BANTRAB/TODOTICKET', 'TODOTICKET', 'TODOTICKET.COM'))) GROUP BY 2;
|
-- 增加订单编辑权限和查看已完成订单权限
INSERT INTO `ecs_admin_action` ( `action_id` , `parent_id` , `action_code` )
VALUES (
NULL , '6', 'order_edit'
), (
NULL , '6', 'order_view_finished'
);
-- 用户中心欢迎页面公告
INSERT INTO `ecs_shop_config` ( `id` , `parent_id` , `code` , `type` , `store_range` , `store_dir` , `value` )
VALUES (
'120', '1', 'user_notice', 'textarea', '', '', '用户中心公告!'
);
-- 找回密码的邮件模板
UPDATE `ecs_mail_templates` SET `template_content` = '{$user_name}您好! \n您已经进行了找回密码的操作,请点击以下链接(或者复制到您的浏览器):\n{$reset_email} \n以确认您的新密码重置操作! \n{$shop_name}\n{$send_date} ' WHERE `ecs_mail_templates`.`template_id` =1 LIMIT 1 ;
-- 商店设置增加是否显示市场价格的选项
INSERT INTO `ecs_shop_config` ( `id` , `parent_id` , `code` , `type` , `store_range` , `store_dir` , `value` )
VALUES (
'707', '7', 'show_marketprice', 'select', '1,0', '', '1'
);
-- 补充2个权限
INSERT INTO `ecs_admin_action` ( `action_id` , `parent_id` , `action_code` )
VALUES (
NULL , '1', 'tag_manage'
);
INSERT INTO `ecs_admin_action` ( `action_id` , `parent_id` , `action_code` )
VALUES (
NULL , '3', 'surplus_manage'
);
-- 团购商品邮件模板
UPDATE `ecs_mail_templates` SET `is_html` = '0', `template_content` = '亲爱的{$consignee}。您好!\n您于{$order_time}在本店参加团购商品活动,所购买的商品名称为:{$goods_name},数量:{$goods_number},订单号为:{$order_sn},订单金额为:{$order_amount} \n此团购商品现在已到结束日期,并达到最低价格,您现在可以对该订单付款。请点击下面的链接:\n{$shop_url} 请尽快登录到用户中心,查看您的订单详情信息。\n\n{$shop_name} \n{$send_date}' WHERE `ecs_mail_templates`.`template_id` =7 LIMIT 1 ;
|
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 15, 2021 at 09:44 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `blog-laravel8`
--
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Entertainment', '2021-11-15 00:42:32', '2021-11-15 00:42:32'),
(2, 'Sports', '2021-11-15 00:42:40', '2021-11-15 00:42:40'),
(3, 'Gadgets', '2021-11-15 00:42:47', '2021-11-15 00:42:47'),
(4, 'Vehicle', '2021-11-15 00:43:06', '2021-11-15 00:43:06');
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(5, '2021_11_14_142856_create_categories_table', 1),
(6, '2021_11_15_185700_create_posts_table', 1);
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `personal_access_tokens`
--
CREATE TABLE `personal_access_tokens` (
`id` bigint(20) UNSIGNED NOT NULL,
`tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`tokenable_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_used_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `posts`
--
CREATE TABLE `posts` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`category_id` bigint(20) UNSIGNED NOT NULL,
`imagePath` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`body` text COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `posts`
--
INSERT INTO `posts` (`id`, `title`, `slug`, `user_id`, `category_id`, `imagePath`, `body`, `created_at`, `updated_at`) VALUES
(1, 'FLOOR LAMPS IN INTERIOR DECOR!', 'floor-lamps-in-interior-decor-1', 1, 1, 'storage/postsImages/kNnjHHDYX9XxITGfsWCWtQFWEt3HlPy9aA0RsE13.jpg', '<p>In almost every interior style, floor lamps play an important role. Especially in interior decore, these floor lamps can create mood and atmosphere. Floor lamps play an important role even in any furniture used in interior decoration. In addition to <a href=\"https://www.bproperty.com/blog/pendant-lights/\">pendant lights</a>, floor lamps can be used in many ways, so they are also used in the interior. These lamps are a weapon that you can use in many ways if you want. Besides, without lighting, no interior style will stand out. Let’s learn more about the role of floor lamps in interior decor and how they make a room stand out. </p>\r\n\r\n<h2>THREE DIFFERENT TYPES OF FLOOR LAMPS</h2>\r\n\r\n<p><img alt=\"ল্যাম্প \" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/11/pexels-juan-pablo-serrano-arenas-1612726.jpg\" style=\"height:900px; width:1440px\" /></p>\r\n\r\n<p>Great as an ambient light</p>\r\n\r\n<p>3 types of lighting are commonly seen in layering lighting. One is<strong> ambient lighting, task lighting </strong>and <strong>accent lighting</strong>. Separately you can use floor lamps in this type of lighting. Ambient light refers to ordinary lights. These lights can be used in almost all the rooms of the house. Floor lamps also look great as ambient lights. Then comes task lights, many people also use them as desk lights. This type of light can be seen in reading corners in the office or at home. If you want, you can easily use the floor lights as task lights. Accent lighting is used to highlight any special space or painting inside the house. This accent lighting is also often used to refer to the center point of the home. Floor lamps can be an excellent option for use in the center of the house. Floor lamps can undoubtedly be used in these three types of work. It is possible to change the mood of the interior of the house by using tall lamps. </p>\r\n\r\n<h2>PORTABLE </h2>\r\n\r\n<p><img alt=\"ফ্লোর ল্যাম্প\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/11/pexels-steve-johnson-896407.jpg\" style=\"height:900px; width:1440px\" /></p>\r\n\r\n<p>Floor lamps are easily portable</p>\r\n\r\n<p>We don’t change the color of our walls very frequently. It is a rare occurrence. However, if you live in a bigger apartment then you can occasionally re-position the furniture. However, for those who live in small houses, it is difficult to move the furniture. In such a context, floor lamps play a very useful role. If you want, you can place the lamps anywhere as per your wish and need for the convenience of the interior. On the other hand, these lamps are groundbreaking to give a significant look to the furniture. Space plays a big role in changing the look and outlook. These lamps are the first choice of many to create a different mood in any corner of the house. You can use these lamps as needed in all the houses. The size of the lamps is quite portable so you can put them in the corridor of the house. </p>\r\n\r\n<h2>ADDS HEIGHT AND ELEGANCE</h2>\r\n\r\n<p><img alt=\"ফ্লোর ল্যাম্প\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/11/pexels-ulrike-h%C3%A4%C3%9Fler-1484981.jpg\" style=\"height:900px; width:1440px\" /></p>\r\n\r\n<p>Floor lamps play a vital role in creating elegance</p>\r\n\r\n<p>The most effective way to make any small space look bigger is to use a vertical shape. An induction of height can be created indoors using verticals. Long strip curtains, high narrow bookshelves, etc. can create a long outlook in the room. Floor lamps do exactly the same thing. Long stick floor lamps can add height to a room. Floor lamps play a vital role in creating elegance.</p>\r\n\r\n<h2>CAN CREATE A STATEMENT </h2>\r\n\r\n<p><img alt=\"ল্যাম্প\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/11/pexels-victoria-borodinova-1648776.jpg\" style=\"height:900px; width:1440px\" /></p>\r\n\r\n<p>Lamps can always create a different atmosphere</p>\r\n\r\n<p>Floor lamps can be a major feature of a home, which you can use to match the theme if you want. If you want, you can use angle standing lights with mid-century style. It will create a stylish ambience inside the house. Lamps can always create a different atmosphere. As a statement piece you can always rely on floor lamps to elevate the entire look of your beautiful home. </p>\r\n\r\n<p> To find your desired lamps you can visit these <a href=\"https://www.bproperty.com/blog/find-different-kinds-lights/\">markets.</a> Lamps are great in <a href=\"https://www.bproperty.com/blog/budget-friendly-corner-decor-ideas/\">creating a corner with budget friendly</a> decor in your home. If you agree with us, let us know in the comments section below! </p>', '2021-11-15 05:12:56', '2021-11-15 05:12:56'),
(2, 'THE PHENOMENA OF BANANI 11!', 'the-phenomena-of-banani-11-2', 1, 4, 'storage/postsImages/KVmzIdK9NxGNQanfZ3A7UisvGkF79oT7XOzDGXYJ.jpg', '<p>On a Friday afternoon when 2 friends are debating about where to go to enjoy a nice meal together, <em>Banani 11</em> is a name that comes up every time. And that is the story of almost every one of us. “Banani 11” isn’t just a road, it has become an unconscious part of our everyday lives. However, contrary to popular belief, Banani Road 11 wasn’t always the busy social hub that it is today. The chaotic “BFC building” was once a home filled with the laughter of kids. The iconic Road 11 was originally intended to serve as a residential area as part of Banani. However, despite being termed as such, the street did not gain the level of popularity for residential purposes as expected. Over time, quite a few significant changes took place and they were the main reasons behind the phenomena that Banani 11 is today.</p>\r\n\r\n<h2>DURING THE 90S</h2>\r\n\r\n<p>The 1.3 km long street, which ended at the lake separating Gulshan and <a href=\"https://www.bproperty.com/blog/advantages-of-living-in-banani/\">Banani</a>, was dotted with a small number of houses. <a href=\"https://www.bproperty.com/blog/banani-next-choice-neighborhood/\">Road 11 was a great place for neighborhood folks</a> to go for a nice afternoon or evening stroll in the 1990s. There was a strong sense of community there, and nearly everyone on the street knew each other. Every now and then, members from each building would gather to either celebrate a special occasion or simply pass the time with some good old-fashioned gossip. It was a pretty close-knit community.</p>\r\n\r\n<p>In the words of Rina Mubin, a long-time resident of the area, Road 11 had gradually lost the charm that it once held as a community. “When my kids were growing up in the area, Banani 11 was the place where all their friends would meet up and even go for a walk during the evening. Now the crazy traffic and restaurants at every other corner represent the new Banani 11.I don’t think people realize that this place was once built to be a residential area. Oh, how time flies!”</p>\r\n\r\n<h2>BRIDGING THE GAP</h2>\r\n\r\n<p><img alt=\"Banani road 11 bridge\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/11/IMG_8624.jpg\" style=\"height:960px; width:1440px\" /></p>\r\n\r\n<p>The famous Banani 11 bridge was built in 2008</p>\r\n\r\n<p>Banani road 11 experienced an unexpected change in 2008. A bridge was built over the Gulshan Lake, connecting the two areas. This set in motion a chain of events that transformed Banani Road 11 from a seemingly quiet residential street to a highly sought-after commercial location. Some people began to leave, relocating to a less crowded area suitable for a home. Others began to rent out their residential building spaces to accommodate small businesses. Whatever the exchange was, it was quite evident that a revolutionary change was taking place in the area. </p>\r\n\r\n<p>The growth of different businesses was also a significant change that everyone witnessed in Banani 11. Larger corporations gradually moved in with their offices. Banani Road 11 had completely transformed into a commercial hub within a decade. Restaurants, pharmacies, hotels, businesses, fashion stores, you name it, Banani road 11 has it. </p>\r\n\r\n<p><a href=\"https://www.bproperty.com/blog/5-most-popular-restaurants-in-banani/\">Banani is known for being the hotspot for restaurants</a>. Many restaurant businesses have started their journey from this road and went on to become successful franchises. <em>Yum Cha District</em> is an ideal example of that. Keeping the business aspect in mind, the popular pan-asian restaurant <em>Yum Cha District </em>started its journey from this iconic road. Explaining their logic behind choosing the road for their business venture, one of the partners of the restaurant Adnan Khan said, “With full confidence in what we were offering, we believed Banani 11 would be the perfect place to start our business. The reason being, people from every area of the city visits Banani 11 almost on a regular basis. As we have now been in business for over 6 years now and have expanded the business all over the city, you can say it was a pretty good decision from our end.”</p>', '2021-11-15 05:13:49', '2021-11-15 05:13:49'),
(3, 'HIDDEN GEMS OF EXCLUSIVE INTERIOR DECOR STORES', 'hidden-gems-of-exclusive-interior-decor-stores-3', 1, 2, 'storage/postsImages/Vy1k8aCpw8I5VcAek6OAL6s6PtwzO6IHMAyxjDQH.jpg', '<p>In recent times, people have become more and more interested in interior decor. Adding some personal touch to their interior is a story of every home now. There is no end to the research on which theme to follow in the interior style according to the needs and requirements. Some may prefer <a href=\"https://www.bproperty.com/blog/vintage-interior-design-style/\" target=\"_blank\">vintage decor style</a> in interior design. Others may prefer <a href=\"https://www.bproperty.com/blog/asian-zen-interior-design/\" target=\"_blank\">Asian Jane Deco style</a>. Even though the interest in interior designing has grown tremendously in the last few years, where to find their desired interior decor items is still a mystery for many. So people who want to pick some exclusive interior decor items for their home, we have listed down some exclusive interior decor stores in Dhaka for you.</p>\r\n\r\n<h2>PURE LIVING</h2>\r\n\r\n<p><img alt=\"পিওর লিভিং ইন্টেরিয়র ডেকোর স্টোর\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/11/Pure-Living-2.jpg\" style=\"height:960px; width:1440px\" /></p>\r\n\r\n<p>Pure Living interior decor store</p>\r\n\r\n<p>Located in Banani, Pure Living is very popular as a stylish home decor store for creating an aesthetic look in interior design. At Pure Living, one of the exclusive interior decor stores in Dhaka, you will find colorful themed sofa sets, cushions, pillows and all the decor items for home decoration. Pure Living has a great collection of drawing, dining, living rooms as well as showpieces. The store has decorative items of different materials like metallic, glass, and ceramic. Since the design is exclusive, the cost of shopping from this store will also be a bit higher. When buying a bed with a bedside table, you have to keep a budget of one and a half to two lakhs. Besides, buying a sofa set with a center table will cost BDT 1.5 lakh or more. Besides, you can have a budget of around 15 thousand taka for buying lamps. However, the price of these things will depend on the fabric, material and design. So there may be some differences in price.</p>\r\n\r\n<p>However, in addition to these decor items, you will also find console tables, clocks, dressing tables, decor accessories and much more at Pure Living. At Pure Living, one of the exclusive interior decor stores in Dhaka, you will find everything you need for a stylish lifestyle!</p>\r\n\r\n<p><strong>Store Address</strong></p>\r\n\r\n<p>House # 30, Road # 10/D</p>\r\n\r\n<p>Banani, Dhaka</p>\r\n\r\n<p><strong>Contact: </strong>01819216154</p>\r\n\r\n<p><strong>Facebook page- </strong><a href=\"https://www.facebook.com/pages/category/Interest/PURE-Living-1606402292713069/\"><strong>https://www.facebook.com/pages/category/Interest/PURE-Living-1606402292713069/</strong></a><strong> </strong></p>\r\n\r\n<h2>RENAISSANCE DECOR</h2>\r\n\r\n<p><img alt=\"রেনেসাঁ ডেকোর ইন্টেরিয়র স্টোর\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/11/renaissance-1.jpg\" style=\"height:960px; width:1440px\" /></p>\r\n\r\n<p>Renaissance Decor interior store</p>\r\n\r\n<p>Renaissance decor is known as one of the most exclusive interior decor stores in Dhaka for luxury and glamorous decor items. Stylish design with exclusive modern home decor products, you can find all the great options in Renaissance for decorating your house. Just as you enter Banani Road No. 11, you will find Renaissance Decor’s showroom. In addition to the interior decor store, there is also a Renaissance decor design studio in the same building. Apart from residential home decor items, you can also visit Renaissance Deco’s Banani showroom to buy unique interior decor items including attractive office furniture, light sets, drawing room sets, rugs, accessories for commercial space decoration.</p>', '2021-11-15 05:14:31', '2021-11-15 05:14:31'),
(4, 'BEST PROPERTIES OF OCTOBER 2021', 'best-properties-of-october-2021-4', 1, 3, 'storage/postsImages/4v2EQvdh44K334AYbHdvLmfiKm8wtxRt6i3owlrb.jpg', '<p>The year is almost over and winter is knocking on our doors. This time of the year can be the perfect time to make that oh so important decision of buying a new home. Yes! The time is now to make that decision as purchasing a property can be a lengthy process. So, as the only complete property solutions provider in Bangladesh, Bproperty is here with the top properties of October 2021 that are available for sale. Check out some of the best recent additions to the Bproperty website here!</p>\r\n\r\n<h2>1,434 SFT. STYLISH APARTMENT IN GULSHAN</h2>\r\n\r\n<p> </p>\r\n\r\n<p> </p>\r\n\r\n<p>if I were to present to you a 3-bedroom apartment that is both smart and stylish in terms of interior, would you be interested in that property? Well, this <a href=\"https://www.bproperty.com/en/property/details-1693899.html\" target=\"_blank\">1,434 sft. Apartment in Gulshan 1</a> is just such a property. This wonderful property has 2 bedrooms and 2 spacious balconies. The dining room is also quite spacious as is the living space. There is also an extra servant’s bathroom attached to the kitchen for convenience. As for security, a 24/7 security service will provide you an uninterrupted peace of mind. With features such as these, in a wonderful area such as this, who wouldn’t want to make a home here?</p>\r\n\r\n<h2>3,021 SFT OPEN FLAT IN BANANI</h2>\r\n\r\n<p> </p>\r\n\r\n<p> </p>\r\n\r\n<p>For a lot of us, the first requirement we have when buying a home is the presence of ample natural light and air. If that is also the case for you, this <a href=\"https://www.bproperty.com/en/property/details-1988784.html\" target=\"_blank\">3,021 sft. Flat in Banani road 23</a> is exactly what you are looking for. This 3-bedroom, 3-bathroom flat has 5 staggering balconies. As a result, all the rest of the rooms receives ample amounts of natural light and air. In addition, the balconies also come with tremendous views which will surely make a wonderful setting for some afternoon tea. All in all, the immense openness, modern interior and fittings make this home one of the top properties of October 2021.</p>\r\n\r\n<h2>1,300 SFT AFFORDABLE FLAT IN MIRPUR</h2>\r\n\r\n<p> </p>\r\n\r\n<p> </p>\r\n\r\n<p>This <a href=\"https://www.bproperty.com/en/property/details-3704959.html\" target=\"_blank\">1,300 sft. Affordable flat is located in Mirpur’s Paikpara</a> area. Right through the entrance, you’ll find a beautiful drawing room adorned with a modern interior and an adjacent dining space. This well-maintained apartment comes with 3-bedrooms and 3-bathrooms. 2 of those bedrooms have attached baths as well as balconies for you to enjoy. Elegant fittings and wooden kitchen cabinets make the space quite exciting. There is also facilities such as parking space, electricity backup and lift are also present there. So, if you are looking for a well-designed flat in Mirpur then this is the place for you.</p>\r\n\r\n<h2>1,662 SFT. PLEASANT APARTMENT IN BASHUNDHARA R/A</h2>\r\n\r\n<p> </p>\r\n\r\n<p> </p>\r\n\r\n<p>Bashundhara R/A is undoubtedly one of the most prime locations in Dhaka. This neatly organized and refreshing community is a favorite of many. So, if you are looking for one of the top properties of 2021 and this area is on your priority list for making a home, then check out this <a href=\"https://www.bproperty.com/en/property/details-3208622.html\" target=\"_blank\">1,662 sft. 3-bedroom flat in Bashundhara R/A</a>. The property has 3-bedrooms to offer, 2 of which are attached to bedrooms. The balcony adjacent to the master bed allows plenty of sunshine to seep in during the day. Also, the flat has quite a spacious drawing and living room that is filled with natural light and air.</p>\r\n\r\n<p>So, these were the top properties of October 2021 we have for you. But if you are looking for something else, there are also plenty of other properties on the Bproperty website – both in Dhaka and Chattogram. You can also download the Bproperty web and get all your property solutions at your fingertips.</p>\r\n\r\n<p>Find the Bproperty App here!</p>', '2021-11-15 05:15:10', '2021-11-15 05:15:10'),
(5, 'HOW BPROPERTY HELPS MARKET YOUR PROPERTY', 'how-bproperty-helps-market-your-property-5', 2, 2, 'storage/postsImages/gyBOqvMJFfui2OprHDLa0TRna8TIX9uWw3i2JeUI.jpg', '<p>Traditionally, the process of selling a home is a time-consuming process and can become very complicated. On one hand, there is the long and tedious process of finding the right buyer, on the other, there is the hassle of managing and preparing necessary legal documents. But, nowadays, people don’t want to go through that much hassle. With the advancement of technology, most people now wish to have everything ready at their fingertips. And it is quickly becoming a demand for the people of this modern age. We, here at Bproperty understand this sentiment better than anyone. As the only property solutions provider in Bangladesh, we are constantly trying to make the overall process of selling and buying a house easy and simple for sellers and home seekers. We take absolute measures to market the property you want to sell through us.</p>\r\n\r\n<p>In general Bproperty markets property in two ways: offline and online. In the following sections, we will be discussing everything you need to know about how Bproperty markets your property in depth.</p>\r\n\r\n<h2>OFFLINE MARKETING</h2>\r\n\r\n<p>In offline marketing strategy, we don’t leave any options unturned. From, customer service to site branding, we take absolute measures so that your property reaches maximum people. Here are all the ways how Bproperty markets your property offline.</p>\r\n\r\n<h3>CUSTOMER SERVICE TO SALES ADVISORS</h3>\r\n\r\n<p><img alt=\"Customer service\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/IMG_7215.jpg\" style=\"height:922px; width:1440px\" /></p>\r\n\r\n<p>Our capable customer service executives are always there to guide you in the right direction</p>\r\n\r\n<p>To ensure we reach the right customers, Bproperty has a very capable <a href=\"https://www.bproperty.com/blog/bproperty-customer-service/\" target=\"_blank\">customer service team</a>. They work relentlessly to make sure your property doesn’t go unnoticed to the potential customers that have the highest chance of buying your property with that particular specifications. There are multiple channels through which our customer service team contacts our customers. And when they get any lead, they inform the concerned authority to assign a sales advisor who then takes everything forward from there right down to the handing over process.</p>\r\n\r\n<h3>PROPERTY FAIR</h3>\r\n\r\n<p><img alt=\"people walking in a suit around Bproperty panel\" src=\"https://www.bproperty.com/blog/wp-content/uploads/Fair-crowd.jpg\" style=\"height:900px; width:1440px\" /></p>\r\n\r\n<p>Interested people came pouring into the Bproperty stall</p>\r\n\r\n<p>Property fairs are amongst the most exciting ways how Bproperty markets your property. Over the years, Bproperty’s ability to organize property fairs has proved to be most effective. We have organized multiple successful property fairs in different parts of the city and Chattogram. We even organized our very first online property fair during the lockdown in 2020. People become interested in property fairs usually because there tend to have plenty of exciting offers and surprises that are exclusive when certain conditions are met. In these fairs, we get a chance to market all sorts of exclusive properties more efficiently and effectively to potential buyers who are actually willing to invest.</p>\r\n\r\n<h3>PRINT MEDIA</h3>\r\n\r\n<p><img alt=\"brochure\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/IMG_20211024_135128.jpg\" style=\"height:1005px; width:1440px\" /></p>\r\n\r\n<p>We take full advantage of print media</p>\r\n\r\n<p>People who come to us seeking new properties, we always guide them in the right direction by understanding their needs first. When any of our properties meet that requirement, we help them with details. And this is where print media like pamphlets and brochures come to play. We make sure that these pamphlets and brochures are well made and attractive so that our customers can easily extract the information that they need.</p>\r\n\r\n<p>We also do site branding (exclusive to the developer project e.g. <a href=\"https://www.bproperty.com/blog/muzaffar-garden-city/\" target=\"_blank\">Muzaffar Garden City by Simco Holdings Ltd.</a>) so that they get maximum reach.</p>\r\n\r\n<h2>ONLINE MARKETING</h2>\r\n\r\n<p>When it comes to online marketing, we go all out. From listing the properties on our website to pushing those listings through our state-of-the-art Bproperty app notifications, we don’ compromise our online customers. After all, we are one of the country’s first prop-tech companies.</p>', '2021-11-15 05:16:41', '2021-11-15 05:16:41'),
(6, 'REAL ESTATE INVESTMENT 101 FOR THE YOUTH', 'real-estate-investment-101-for-the-youth-6', 2, 1, 'storage/postsImages/Tt7VmdPEzYvxcfxXGvJ0uer9BIDBc3gTimNIzBj3.jpg', '<p>In today’s market, investing has grown beyond traditional assets. While stocks, bonds and mutual funds are still considered common investment options, there are many other avenues that can also be rewarding in the long run, if you are willing to put in the time. One such avenue is <a href=\"https://www.bproperty.com/blog/types-real-estate-investments/\" target=\"_blank\">real estate investment</a>. However when it comes to young real estate investors, the stakes are quite high. Because for unknown reasons, real estate is considered to be an investment opportunity for the older generation. But the good news is, the new generation is now getting more and more interested in investing in real estate. In spite of the growing interest , many young people don’t even know where to start. So in today’s article, we have listed down some important real estate tips for young investors to help them start their investment journey. </p>\r\n\r\n<h2>RESEARCH THE MARKET </h2>\r\n\r\n<p><img alt=\"Research the market\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_280262480.jpg\" style=\"height:960px; width:1440px\" /></p>\r\n\r\n<p>Research the market well to know the prospects</p>\r\n\r\n<p>The very first step towards investing in real estate is getting well educated and getting enough knowledge about the market. How could you possibly know that you even want to be a real estate investor without knowing what’s actually involved? Just because real estate is a lucrative market, that shouldn’t be your only motivation. Otherwise it can be a major money pit. Research on what kinds of projects will yield the highest ROI for you. Know more about the trends, market ups and downs, future prospects and then decide.</p>\r\n\r\n<h2>PLAN AHEAD</h2>\r\n\r\n<p><img alt=\"Plan for the future\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_1431813467.jpg\" style=\"height:960px; width:1440px\" /></p>\r\n\r\n<p>Planning will save you from failing</p>\r\n\r\n<p>Planning is key in every business. And real estate investment is not above it as well. Real estate investment can be complicated and demanding, and a solid plan can keep young investors organized and on task. Do you think with your current income you can save enough to submit the down payment of your first house? Are you eligible to apply for a home loan with your current income? Will your partner be able to help you out during a sudden financial crisis? What are your back-up options if there is a sudden inflation in the market? These are some of the important questions to ask yourself before you consider moving ahead with the investment plan.</p>\r\n\r\n<h2>KNOW WHAT YOU WANT</h2>\r\n\r\n<p><img alt=\"Know what you want \" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_143785585.jpg\" style=\"height:800px; width:1440px\" /></p>\r\n\r\n<p>Know what suits best for you</p>\r\n\r\n<p>Youngsters get a bad name for not knowing what they want. But if you let your young enthusiasm get in the way then planning to invest in real estate might backfire for you. There are many different streams of real estate. You need to figure out which one is right for you. Do you want to <a href=\"https://www.bproperty.com/blog/benefits-flipper-house/\" target=\"_blank\">flip a property</a>? Or do you want to leave behind assets for your next generation? Are you interested in owning land? Or are you looking for an apartment to rent out and generate a steady income for yourself? Once you put your finger on what it is that you want, your investment prospects will open up tremendously. </p>\r\n\r\n<h2>SAVINGS WILL SAVE YOU</h2>\r\n\r\n<p><img alt=\"tips for young real estate investors\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_520832017.jpg\" style=\"height:960px; width:1440px\" /></p>\r\n\r\n<p>Savings can help you start your investment journey</p>\r\n\r\n<p>For those of you who are super serious about starting to invest in real estate, savings will help you. Depending only on external funding will put a break on your investment dreams if you don’t have something saved up to kick start your dream. If you are living paycheck to paycheck then picking up a side hustle could be the way to go for you. Online platforms <em>Upwork</em>, <em>Fiber</em> provide great opportunities for you to start earning some extra money. Rent is another way you can save up some extra cash. If possible try moving in with your parents and save that money for later. You can also choose to live in an affordable area to save money on rent. You will be surprised to see how much you can save.</p>\r\n\r\n<h2>TAKE ADVANTAGE OF REGULATION CHANGES</h2>\r\n\r\n<p><img alt=\"Real estate changes \" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_138129767.jpg\" style=\"height:958px; width:1440px\" /></p>\r\n\r\n<p>Keep an eye on any significant changes in interest rates or current market trends.</p>\r\n\r\n<p>Real estate investment is all about keeping yourself updated with the recent market trends. Just a small change in the regulations can make or break your investment prospects. So one of the biggest tips for young real estate investors is to take advantage of regulation changes. Keep an eye on any significant changes in interest rates, tax breaks or <a href=\"https://www.bproperty.com/blog/tips-real-estate-trends-bangladesh/\">current market trends</a>. For instance, in April 2020, Banks in the country started implementing single digit (9 per cent) interest rates for all kinds of loans (apart from credit cards) in compliance with the government which was previously as high as 13 per cent. So those who took advantage of this opportunity, were highly benefited in the long run as the deduction of the rate had a huge impact on their final payable loan amount. </p>\r\n\r\n<p>No matter how appealing it may look from the outside, being a successful young real estate investor is challenging to say the least. However, by just keeping in mind these simple tips mentioned in the article, you will definitely be one step closer to becoming a successful real estate investor.</p>', '2021-11-15 05:17:35', '2021-11-15 05:17:35'),
(7, 'TYPES OF DINING TABLES FOR HOME DECOR', 'types-of-dining-tables-for-home-decor-7', 2, 2, 'storage/postsImages/j02JWbqXFx9OEJKdmSk3Mnn6XWL8b4LujBc3TPhE.jpg', '<p>Every dining table has a story. Remember the days when you would sit down with your family for dinner and tell everyone about your fight with your best-friend over a piece of candy? From such childhood memories to heated family discussions, many of our memorable life moments happen while we are sharing a meal with our loved ones at a dining table. These days in this world of smartphones and other gadgets that we live in, your dining table might be the only place the family comes together and be able to have a conversation while having a delicious meal. The good news is, dining tables have now become an essential part of home decor as well. There are now many different types of dining tables in the market for you to choose from. In today’s blog, we have listed down some of the different types of dining table for you to choose from. </p>\r\n\r\n<h2>WOODEN DINING TABLE</h2>\r\n\r\n<p><img alt=\"Different types of dining table\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_1408016528.jpg\" style=\"height:960px; width:1440px\" /></p>\r\n\r\n<p>Almost every household has owned a wooden dining table</p>\r\n\r\n<p>This one is a classic. Almost every household has owned a wooden dining table at one point. It doesn’t matter what the new trends of dining tables are coming every year, a wooden dining table is never out of fashion. Either round, rectangular, or square, a wooden type of dining table fits in with all types of interior decor. Ensure you choose a wooden dining table that not only matches but also enhances the color of your dining room. </p>\r\n\r\n<p>You can <a href=\"https://www.bproperty.com/blog/dining-room-decoration/\">decorate your dining room following a wood theme </a>as well. You can also enhance your wooden dining table by using stylish frames and decorative designs. And the biggest advantage of a wooden dining table is its durability. If made with good quality wood, it can serve you upto 15-20 years. </p>\r\n\r\n<h2>MARBLE DINING TABLE </h2>\r\n\r\n<p><img alt=\"marble dining table\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_257179270.jpg\" style=\"height:960px; width:1440px\" /></p>\r\n\r\n<p>A little on the expensive side, marble dining tables look quite classy</p>\r\n\r\n<p>Marble dining table is perhaps the easiest to clean. However, this dining table is quite expensive, and this is why it’s considered a luxurious type of dining table. It is classy, looks good and is easy to maintain. This type of dining table compliments all types of home decor. Marble dining tables are also durable and last for a long period if they are well maintained. A marble dining table is an environmentally friendly dining table as marble is a natural stone that doesn’t require any industrial efforts for its production.</p>\r\n\r\n<h2>GLASS DINING TABLE</h2>\r\n\r\n<p><img alt=\"Glass dining table\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_646186453.jpg\" style=\"height:1080px; width:1440px\" /></p>\r\n\r\n<p>A glass dining table gives you the freedom to experiment with its frame</p>\r\n\r\n<p>If you are looking for a stylish and modern type of dining table, a glass tabletop dining table is what you need. It radiates a level of subtlety and opens up the visual space of your dining room.</p>\r\n\r\n<p>Despite its sophistication, the glass dining table is very easy to maintain and clean. The glass dining table gives you the freedom to experiment with its frame. You can use metal, natural stones, or wood for your frame to match your interior design. You can also opt for a one that is made of all glass. </p>\r\n\r\n<h2>METAL DINING TABLE</h2>\r\n\r\n<p><img alt=\"Metal dining table\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_1959390097.jpg\" style=\"height:1083px; width:1440px\" /></p>\r\n\r\n<p>A metal dining table is very durable and lasts for a long time</p>\r\n\r\n<p>A metal dining table is one of the trendy types of dining tables and has become the preferred choice for many people now. This type of dining table is best suited for homes with <a href=\"https://www.bproperty.com/blog/modern-dining-room-designs/\">modern dining room decor.</a> A metal dining table is very durable and lasts for a long time. Since it’s made of metal, you can put items of any kind and size on it without doing any damage. Metal dining tables might cost you a little more than other dining tables on the list, but it will be worth the money. </p>\r\n\r\n<h2>PLASTIC DINING TABLE </h2>\r\n\r\n<p>If you are looking for a dining table on a budget and also looking for something that looks good then a plastic dining table should be your first choice. Easy to use and maintain, many small families are leaning towards plastic dining tables now. Lightweight and easy to move, plastic dining tables come in a variety of colors. </p>\r\n\r\n<p>There are so many different types of dining table styles to choose from, you’re probably wondering where to begin. A dining table can be a big investment, so you want to make sure you pick one that fits your style and meets all your hosting needs. For more content like this, keep up to date with the Bproperty blog and let us know your thoughts on the article in the comments section below.</p>', '2021-11-15 05:18:10', '2021-11-15 05:28:33'),
(8, 'THE WONDERFUL DIVERSITY OF BENGALI FOLK FAIRS', 'the-wonderful-diversity-of-bengali-folk-fairs-8', 2, 3, 'storage/postsImages/paPjKk6ckcOGKj4GjNcgy8t0vINXA0p99Iu9nR9V.jpg', '<p>It was beyond my grasp when my father introduced me to a folk fair during my childhood. To me, the arrangement of people having all sorts of fun in flocks, in a setting that could only be compared to a dream full of happiness was like magic. In the little brain of mine, the yet unfathomable positive energy and spirit of people living, breathing, and enjoying was hypnotizing. As far as I can remember, me watching everything unfold before my eyes and having cotton candy while standing in between the ferry’s wheel and puppet show stall is what I can clearly recall being awestruck for the very first time in my life. To me, fair sparked joy. </p>\r\n\r\n<p><img alt=\"Fair\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/imgpsh_fullsize_anim-18-scaled.jpg\" style=\"height:1920px; width:2560px\" /></p>\r\n\r\n<p>There are thousands of fairs in Bangladesh that’s been held throughout the year</p>\r\n\r\n<p>However, as I grew older, I realized a fair is not just a festival and arrangement that makes people happy. It is much more than that. It is a reflection of our culture and tradition. From the Bengali month of Hemanta to Chaitra, you will always find a fair almost every month in some part of our country. It’s rooted in our tradition; weaved as though it is an active part of our culture itself. And you will be fascinated by the arrangement surrounding all these fairs the most. Having that said, here are some of the most popular folk fairs in Bangladesh that are also culturally impactful.</p>\r\n\r\n<h2>BAISHAKHI FAIR</h2>\r\n\r\n<p><img alt=\"folk fair\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/imgpsh_fullsize_anim-20-scaled.jpg\" style=\"height:1707px; width:2560px\" /></p>\r\n\r\n<p>Handicrafts are the main attractions of folk fairs</p>\r\n\r\n<p>Among all the different fairs in Bangladesh, the Baishakhi fair is the most popular one. It is all-embracing. It is the source of our ever-growing Bengali sentiment; a spontaneous outburst of joy and happiness. It is organized on the first day of the Bengali new year across Bangladesh both on a small or large scale. However, the Bashakhi fair of Kandirpar in Comilla is the most noteworthy. Local agricultural products, handicrafts, folk items, cottage items, and clay items are the main attractions of this fair.</p>\r\n\r\n<h2>FOLK ART AND HANDICRAFT FAIR</h2>\r\n\r\n<p><img alt=\"village fair\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/pexels-deepak-maurya-6808935.jpg\" style=\"height:1440px; width:1980px\" /></p>\r\n\r\n<p>The fair features all sorts of folk and cottage items from across the country</p>\r\n\r\n<p>This is also amongst the most celebrated fairs in Bangladesh. The Folk Art and Handicraft fair is arranged every year during the middle of January in Narayanganj. Held on the courtyard of Bangladesh Folk Art & Crafts Foundation in Sonargaon, this month-long fair is one of the biggest fairs in Bangladesh. In this folk fair, artists from across the country present themselves with different types of folk arts, handicrafts, and other traditional items. Besides, many people come here specifically to purchase different types of<a href=\"https://www.bproperty.com/blog/motifs-dhakai-jamdani/\" target=\"_blank\"> Dhakai Jamdani</a> and<a href=\"https://www.bproperty.com/blog/nakshi-kantha-history/\" target=\"_blank\"> various types of Nakshi Kantha</a>.</p>\r\n\r\n<h2>BOU-MELA UNDER THE BANYAN TREE</h2>\r\n\r\n<p>This Bou-Mela has been organized for decades centering on the 400 years old banyan tree in Narayanganj. On the 2nd day of Baishakh, the women devotees of the Hindu religion worship the banyan tree in hopes of good health, happiness, and peace. It is amongst the oldest fairs in Bangladesh that has still been arranged successfully to this day.</p>\r\n\r\n<h2>FAIR OF LANGALBAND</h2>\r\n\r\n<p><img alt=\"folk fair\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/pexels-yogendra-singh-3452844.jpg\" style=\"height:1440px; width:1980px\" /></p>\r\n\r\n<p>Followers of Hindu devotees congregate for the holy bath in this fair</p>\r\n\r\n<p>During the 2nd or 8th phase of the moon in every Bengali month of Chaitra, the devotees of the Hindu religion gather around in Brahmaputra River in the Bandar area of Langalband in Narayanganj for a holy bath. Centering on this occasion, a three-day fair is held on both banks of the Brahmaputra.</p>\r\n\r\n<h2>LALAN FAIR</h2>\r\n\r\n<p>Lalon fair is organized twice a year centering on the tomb of the mystic artist Lalon Sai in the Cheuriya village of Kumarkhali sub-division of Kushtia. One of them is organized on the occasion of the death anniversary of Lalon Sanji. And the other one is arranged on the occasion of the sainthood introduced by Lalon in Dolpurnima.</p>\r\n\r\n<h2>RAS FAIR</h2>\r\n\r\n<p>Rasmela (Ras fair) is held every year on the full moon day of Kartik-Agrahayan in Dublar Char of Sundarbans, the largest mangrove forest in the world. Many Hindu devotees and tourists flocked from different parts of the country and abroad to participate in the festival. On this occasion, a five-day fair is also held at Dublar Char. The fair has been going on since 1923.</p>\r\n\r\n<h2>RAS LEELA FAIR</h2>\r\n\r\n<p>Ras Leela, the main religious festival of the Manipuri community, is celebrated on the full moon day of Kartik Agrahayan in Kamalganj and Adampur, two upazilas bordering the Moulvibazar district of Sylhet. This is one of many reasons<a href=\"https://www.bproperty.com/blog/why-love-sylhet/\" target=\"_blank\"> why many people love Sylhet</a> so much. On this occasion, a three-day fair is held in Madhabpur of Kamalganj and the Sanathakur Mandap area of Adampur.</p>\r\n\r\n<h2>GURPUKUR FAIR</h2>\r\n\r\n<p>This traditional fair of the Satkhira region of Bangladesh is more than 300 years old. According to the Bengali calendar, this fair is held at the end of the Bengali month of Bhadra centering on the worship of Manasa. This fair goes on for a month. </p>\r\n\r\n<h2>PORADAHA MELA</h2>\r\n\r\n<p>This exceptional fair has been held on the banks of Ichhamati River in the Golabari area of the Mahishaban union of Gabtali upazila for 25 years. The two-day fair is held on the last Wednesday of the month of Magh every year. The main attraction of this fair is all sorts of big fish that the merchants bring to sell.</p>\r\n\r\n<h2>MADHU FAIR</h2>\r\n\r\n<p>A week-long Madhu fair is held every year at Sagardari in Keshabpur upazila of Jessore district. The fair is organized on the occasion of the birth anniversary of the great poet Michael Madhusudan Dutt; the pioneer of Amitrakshara rhyme in Bengali literature.</p>\r\n\r\n<h2>RATH FAIR</h2>\r\n\r\n<p>Usually, the Rath fair is held in the last week of the month of Ashar in the Bengali year. This is one of the significant fairs that the devotees of Hindu religion organize every year. The biggest rath fair is held at Dhamrai in Savar. Besides, Rathkhola fair of Kushtia, Rath fair of Puthia of Rajshahi, Lamapara Rath Yatra Fair of Sylhet are notable.</p>\r\n\r\n<h2>OTHER SPECIAL FAIRS</h2>\r\n\r\n<p>In Chittagong, a week-long fair is held on the banks of Laldighi on the occasion of Jabbar’s ball game. Srimangal is home to the ethnic Khasia, Manipuri, Santal, Tipra, and Garo communities. Every year the ‘Fagua Festival’, the ‘Baisu Festival’ of the Tipras, the ‘Ras Festival’ of the Manipuris and the ‘Wangala Festival’ of the Garos are celebrated blissfully in the tea gardens.</p>\r\n\r\n<h2>HOW THE BENGALI FAIRS HAVE SURVIVED</h2>\r\n\r\n<p><img alt=\"folk fair\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/imgpsh_fullsize_anim-19-scaled.jpg\" style=\"height:1707px; width:2560px\" /></p>\r\n\r\n<p>Different types of delicacies are available in the folk fair</p>\r\n\r\n<p>By definition, a fair means a festive arrangement of people buying and selling goods centering on religious or other special occasions at a specific time and a place. However, the arrangement that we call “Fair” can never be defined as simply in the context of Bangladesh. Because our fairs have also played a role in shaping our society and in many ways helped to develop our rich culture over the years. That is why while some people visit them to purchase things, others visit to embrace the culture and celebrate it. And for<a href=\"https://www.bproperty.com/blog/high-school-memories/\" target=\"_blank\"> kids studying in high school in the 90’s</a>, the memories of visiting the fair and having fun might hold a special place in their hearts since these kinds of fairs were more prevalent at that time.</p>\r\n\r\n<p>Although there are a variety of modern fairs in Bangladesh, they couldn’t diminish the popularity of traditional Bengali fare. And this local tradition which we call “Mela” is expected to survive for years in<a href=\"https://www.bproperty.com/blog/folk-urban-culture-bengal/\" target=\"_blank\"> Bengali folk culture and urban culture</a>.</p>\r\n\r\n<ul>\r\n <li> </li>\r\n</ul>', '2021-11-15 05:18:56', '2021-11-15 05:18:56');
INSERT INTO `posts` (`id`, `title`, `slug`, `user_id`, `category_id`, `imagePath`, `body`, `created_at`, `updated_at`) VALUES
(9, 'CREATING A MENTAL HEALTH POSITIVE HOME', 'creating-a-mental-health-positive-home-9', 1, 1, 'storage/postsImages/V0XtonNxjtM4dMBq7VxGSIhwaBYIEwCYPhdryXIt.jpg', '<p>After a long day of stress at work, home is the one place where we can truly be ourselves. However, we often ignore the peace that the four walls of our home can create. But just a few small tweaks can help create a home that nurtures your mental health. Today we have put together some easy ideas to create a mental health positive home for you.</p>\r\n\r\n<h2>ENSURE A CLEAN AND ORGANIZED ENVIRONMENT AT HOME</h2>\r\n\r\n<p><img alt=\"Organized home\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_1549508954.jpg\" style=\"height:960px; width:1440px\" /></p>\r\n\r\n<p>Make cleaning a regular habit for yourself</p>\r\n\r\n<p>There are no alternatives to being organized. An organized home can have an immense positive affect on your mental health. Try to invest in storage that allows you to put objects away and out of sight, making your home look less cluttered. Make cleaning a regular habit for yourself. You would be surprised how therapeutic this can be. </p>\r\n\r\n<h2>DECORATE WITH PLANTS</h2>\r\n\r\n<p><img alt=\"Decorate with plants\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_1419886322.jpg\" style=\"height:960px; width:1440px\" /></p>\r\n\r\n<p>Plants have the power to heal</p>\r\n\r\n<p>When you pass by beautiful flowers on your way to work or look out the window and see the trees , how do you feel? Don’t you feel like plants have the power to heal? Decorating your home with plants can have a similar effect on your mental health as well. If you are planning to create a mental health positive home, plants like snake plant, money plant, and alocasia are some <a href=\"https://www.bproperty.com/blog/taking-care-indoor-plants/\">great indoor plants to decorate your home with.</a> </p>\r\n\r\n<h2>CREATE A READING ZONE</h2>\r\n\r\n<p><img alt=\"reading corner\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_155562782.jpg\" style=\"height:960px; width:1440px\" /></p>\r\n\r\n<p>Create a reading zone for yourself</p>\r\n\r\n<p>When in stress, a good book can be your friend. And creating a reading zone in a corner of your home will not only look aesthetically pleasing, but will also be a corner for relaxation when you are having a rough day. Set up a nice bookshelf, add your favorite books, and just detach from all the chaos around you. This can be a great source of gaining knowledge and detoxifying from all the chaos of the world.</p>\r\n\r\n<h2>UTILIZE OUTDOOR SPACES</h2>\r\n\r\n<p><img alt=\"Creating a Mental Health Positive Home\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_282159788.jpg\" style=\"height:1190px; width:1440px\" /></p>\r\n\r\n<p>Make proper use of open spaces</p>\r\n\r\n<p>Even though it might be a little difficult to find a huge outdoor space in Dhaka city, you can still make good use of the balcony you already have. A well-decorated corner in your balcony can give you the peace of mind that you might need after a long tiring day. And the process doesn’t have to be complicated. Adding a few elements to your balcony will be enough to <a href=\"https://www.bproperty.com/blog/kick-balcony-up-notch/\">kick your balcony up a notch</a>. Decorate your balcony with plants, sitting arrangements and enjoy a cup of warm tea while looking out at nature. If possible, you can create this set up on your rooftop as well. </p>\r\n\r\n<h2>SET UP A HOME GYM</h2>\r\n\r\n<p><img alt=\"Home gym\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_1893712660.jpg\" style=\"height:1125px; width:1440px\" /></p>\r\n\r\n<p>Build a home gym for yourself</p>\r\n\r\n<p>When you exercise, your body releases a chemical called endorphins. These endorphins are also known as the ‘happy hormones’. Endorphins also trigger a positive feeling in the body. So make exercising a daily habit for yourself. <a href=\"https://www.bproperty.com/blog/create-home-gym/\">Create your own home gym</a> and have easy access to exercise anytime you want. </p>\r\n\r\n<h2>FURNISH YOUR SPACE USING NATURAL MATERIALS AND ELEMENTS</h2>\r\n\r\n<p><img alt=\"Add natural elements \" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_1613916676.jpg\" style=\"height:959px; width:1440px\" /></p>\r\n\r\n<p>Furnish your place with wood, brick, terracotta, stone and other natural materials</p>\r\n\r\n<p>Natural materials are great for de-stress. Furnishing your place with elements of wood, brick, terracotta, stone and other natural materials is a great way to incorporate natural design elements into your space. Plan ahead by making use of materials that evoke a certain mood that you wish to emulate, then purchase furniture and accessories accordingly. </p>\r\n\r\n<h2>CREATE “YOUR” CORNER</h2>\r\n\r\n<p><img alt=\"A corner for yourself\" src=\"https://www.bproperty.com/blog/wp-content/uploads/2021/10/shutterstock_286876997.jpg\" style=\"height:935px; width:1440px\" /></p>\r\n\r\n<p>Create a corner that caters to your wants</p>\r\n\r\n<p>Every individual is different. So naturally, the way of caring for mental health is also different for everyone. Creating a corner in your home that is custom made according to your needs is the best way to do that. Enjoy playing video games? Set up a corner with your favorite games to disconnect from the world. Is a cup of coffee all you need to de-stress? Then set up a coffee corner for yourself. Do what suits <em>you </em>best. </p>\r\n\r\n<p>Your home is a reflection of your mindset. Unless you can create an environment in your home that positively affects your mindset, it can become difficult to nurture a positive mindset. So just follow these simple tips and you get one step closer to your positive mental health journey.</p>', '2021-11-15 05:20:59', '2021-11-15 05:20:59');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Admin', 'admin@gmail.com', NULL, '$2y$10$I223Y3gn.qRjh6ITyvAre.xzTlkIb/DNvD4pwVfflP1SlMovDHPWC', NULL, '2021-11-15 00:32:18', '2021-11-15 00:32:18'),
(2, 'User', 'user@gmail.com', NULL, '$2y$10$wsvIiPF5doBlRD6bZYPazuMJPeNKDrF/figMgpjhNe/u.IQwjtubi', NULL, '2021-11-15 00:33:18', '2021-11-15 00:33:18');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `categories_name_unique` (`name`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);
--
-- Indexes for table `posts`
--
ALTER TABLE `posts`
ADD PRIMARY KEY (`id`),
ADD KEY `posts_user_id_foreign` (`user_id`),
ADD KEY `posts_category_id_foreign` (`category_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `posts`
--
ALTER TABLE `posts`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `posts`
--
ALTER TABLE `posts`
ADD CONSTRAINT `posts_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `posts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
select 1 as id
union all
select * from {{ ref('node_0') }}
union all
select * from {{ ref('node_3') }}
union all
select * from {{ ref('node_6') }}
union all
select * from {{ ref('node_8') }}
union all
select * from {{ ref('node_17') }}
union all
select * from {{ ref('node_20') }}
union all
select * from {{ ref('node_78') }}
union all
select * from {{ ref('node_97') }}
union all
select * from {{ ref('node_756') }}
|
-- MySQL dump 10.13 Distrib 5.6.35, for osx10.9 (x86_64)
--
-- Host: localhost Database: laraclassified
-- ------------------------------------------------------
-- Server version 5.6.35
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Dumping data for table `<<prefix>>subadmin1`
--
/*!40000 ALTER TABLE `<<prefix>>subadmin1` DISABLE KEYS */;
INSERT INTO `<<prefix>>subadmin1` VALUES (726,'CZ.52','CZ','Praha','Praha',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (727,'CZ.78','CZ','South Moravian','South Moravian',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (728,'CZ.79','CZ','Jihočeský','Jihocesky',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (729,'CZ.80','CZ','Vysočina','Vysocina',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (730,'CZ.81','CZ','Karlovarský','Karlovarsky',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (731,'CZ.82','CZ','Královéhradecký','Kralovehradecky',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (732,'CZ.83','CZ','Liberecký','Liberecky',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (733,'CZ.84','CZ','Olomoucký','Olomoucky',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (734,'CZ.85','CZ','Moravskoslezský','Moravskoslezsky',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (735,'CZ.86','CZ','Pardubický','Pardubicky',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (736,'CZ.87','CZ','Plzeňský','Plzensky',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (737,'CZ.88','CZ','Central Bohemia','Central Bohemia',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (738,'CZ.89','CZ','Ústecký','Ustecky',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (739,'CZ.90','CZ','Zlín','Zlin',1);
/*!40000 ALTER TABLE `<<prefix>>subadmin1` ENABLE KEYS */;
--
-- Dumping data for table `<<prefix>>subadmin2`
--
/*!40000 ALTER TABLE `<<prefix>>subadmin2` DISABLE KEYS */;
INSERT INTO `<<prefix>>subadmin2` VALUES (11817,'CZ.78.0627','CZ','CZ.78','Okres Znojmo','Okres Znojmo',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11818,'CZ.80.0615','CZ','CZ.80','Okres Žďár nad Sázavou','Okres Zd\'ar nad Sazavou',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11819,'CZ.78.0626','CZ','CZ.78','Okres Vyškov','Okres Vyskov',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11820,'CZ.90.0723','CZ','CZ.90','Okres Vsetín','Okres Vsetin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11821,'CZ.86.0534','CZ','CZ.86','Okres Ústí nad Orlicí','Okres Usti nad Orlici',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11822,'CZ.89.0427','CZ','CZ.89','Okres Ústí nad Labem','Okres Usti nad Labem',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11823,'CZ.90.0722','CZ','CZ.90','Okres Uherské Hradiště','Okres Uherske Hradiste',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11824,'CZ.82.0525','CZ','CZ.82','Okres Trutnov','Okres Trutnov',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11825,'CZ.80.0614','CZ','CZ.80','Okres Třebíč','Okres Trebic',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11826,'CZ.89.0426','CZ','CZ.89','Okres Teplice','Okres Teplice',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11827,'CZ.87.0327','CZ','CZ.87','Okres Tachov','Okres Tachov',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11828,'CZ.79.0317','CZ','CZ.79','Okres Tábor','Okres Tabor',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11829,'CZ.86.0533','CZ','CZ.86','Okres Svitavy','Okres Svitavy',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11830,'CZ.84.0715','CZ','CZ.84','Okres Šumperk','Okres Sumperk',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11831,'CZ.79.0316','CZ','CZ.79','Okres Strakonice','Okres Strakonice',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11832,'CZ.81.0413','CZ','CZ.81','Okres Sokolov','Okres Sokolov',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11833,'CZ.83.0514','CZ','CZ.83','Okres Semily','Okres Semily',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11834,'CZ.82.0524','CZ','CZ.82','Okres Rychnov nad Kněžnou','Okres Rychnov nad Kneznou',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11835,'CZ.87.0326','CZ','CZ.87','Okres Rokycany','Okres Rokycany',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11836,'CZ.88.020C','CZ','CZ.88','Okres Rakovník','Okres Rakovnik',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11837,'CZ.84.0713','CZ','CZ.84','Okres Prostějov','Okres Prostejov',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11838,'CZ.88.020B','CZ','CZ.88','Okres Příbram','Okres Pribram',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11839,'CZ.84.0714','CZ','CZ.84','Okres Přerov','Okres Prerov',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11840,'CZ.88.020A','CZ','CZ.88','Okres Praha-Západ','Okres Praha-Zapad',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11841,'CZ.88.0209','CZ','CZ.88','Okres Praha-Východ','Okres Praha-Vychod',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11842,'CZ.79.0315','CZ','CZ.79','Okres Prachatice','Okres Prachatice',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11843,'CZ.87.0325','CZ','CZ.87','Okres Plzeň-Sever','Okres Plzen-Sever',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11844,'CZ.87.0323','CZ','CZ.87','Okres Plzeň-Město','Okres Plzen-Mesto',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11845,'CZ.87.0324','CZ','CZ.87','Okres Plzeň-Jih','Okres Plzen-Jih',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11846,'CZ.79.0314','CZ','CZ.79','Okres Písek','Okres Pisek',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11847,'CZ.80.0613','CZ','CZ.80','Okres Pelhřimov','Okres Pelhrimov',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11848,'CZ.86.0532','CZ','CZ.86','Okres Pardubice','Okres Pardubice',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11849,'CZ.85.0806','CZ','CZ.85','Okres Ostrava-Město','Okres Ostrava-Mesto',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11850,'CZ.85.0805','CZ','CZ.85','Okres Opava','Okres Opava',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11851,'CZ.84.0712','CZ','CZ.84','Okres Olomouc','Okres Olomouc',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11852,'CZ.88.0208','CZ','CZ.88','Okres Nymburk','Okres Nymburk',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11853,'CZ.85.0804','CZ','CZ.85','Okres Nový Jičín','Okres Novy Jicin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11854,'CZ.82.0523','CZ','CZ.82','Okres Náchod','Okres Nachod',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11855,'CZ.89.0425','CZ','CZ.89','Okres Most','Okres Most',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11856,'CZ.88.0207','CZ','CZ.88','Okres Mladá Boleslav','Okres Mlada Boleslav',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11857,'CZ.88.0206','CZ','CZ.88','Okres Mělník','Okres Melnik',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11858,'CZ.89.0424','CZ','CZ.89','Okres Louny','Okres Louny',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11859,'CZ.89.0423','CZ','CZ.89','Okres Litoměřice','Okres Litomerice',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11860,'CZ.83.0513','CZ','CZ.83','Okres Liberec','Okres Liberec',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11861,'CZ.88.0205','CZ','CZ.88','Okres Kutná Hora','Okres Kutna Hora',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11862,'CZ.90.0721','CZ','CZ.90','Okres Kroměříž','Okres Kromeriz',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11863,'CZ.88.0204','CZ','CZ.88','Okres Kolín','Okres Kolin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11864,'CZ.87.0322','CZ','CZ.87','Okres Klatovy','Okres Klatovy',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11865,'CZ.88.0203','CZ','CZ.88','Okres Kladno','Okres Kladno',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11866,'CZ.85.0803','CZ','CZ.85','Okres Karviná','Okres Karvina',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11867,'CZ.81.0412','CZ','CZ.81','Okres Karlovy Vary','Okres Karlovy Vary',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11868,'CZ.79.0313','CZ','CZ.79','Okres Jindřichův Hradec','Okres Jindrichuv Hradec',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11869,'CZ.80.0612','CZ','CZ.80','Okres Jihlava','Okres Jihlava',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11870,'CZ.82.0522','CZ','CZ.82','Okres Jičín','Okres Jicin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11871,'CZ.83.0512','CZ','CZ.83','Okres Jablonec nad Nisou','Okres Jablonec nad Nisou',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11872,'CZ.82.0521','CZ','CZ.82','Okres Hradec Králové','Okres Hradec Kralove',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11873,'CZ.78.0625','CZ','CZ.78','Okres Hodonín','Okres Hodonin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11874,'CZ.80.0611','CZ','CZ.80','Okres Havlíčkův Brod','Okres Havlickuv Brod',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11875,'CZ.90.0724','CZ','CZ.90','Okres Zlín','Okres Zlin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11876,'CZ.85.0802','CZ','CZ.85','Okres Frýdek-Místek','Okres Frydek-Mistek',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11877,'CZ.87.0321','CZ','CZ.87','Okres Domažlice','Okres Domazlice',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11878,'CZ.89.0421','CZ','CZ.89','Okres Děčín','Okres Decin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11879,'CZ.86.0531','CZ','CZ.86','Okres Chrudim','Okres Chrudim',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11880,'CZ.89.0422','CZ','CZ.89','Okres Chomutov','Okres Chomutov',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11881,'CZ.81.0411','CZ','CZ.81','Okres Cheb','Okres Cheb',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11882,'CZ.79.0312','CZ','CZ.79','Okres Český Krumlov','Okres Cesky Krumlov',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11883,'CZ.79.0311','CZ','CZ.79','Okres České Budějovice','Okres Ceske Budejovice',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11884,'CZ.83.0511','CZ','CZ.83','Okres Česká Lípa','Okres Ceska Lipa',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11885,'CZ.85.0801','CZ','CZ.85','Okres Bruntál','Okres Bruntal',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11886,'CZ.78.0623','CZ','CZ.78','Okres Brno-Venkov','Okres Brno-Venkov',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11887,'CZ.78.0622','CZ','CZ.78','Město Brno','Mesto Brno',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11888,'CZ.78.0624','CZ','CZ.78','Okres Břeclav','Okres Breclav',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11889,'CZ.78.0621','CZ','CZ.78','Okres Blansko','Okres Blansko',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11890,'CZ.88.0202','CZ','CZ.88','Okres Beroun','Okres Beroun',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11891,'CZ.88.0201','CZ','CZ.88','Okres Benešov','Okres Benesov',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11892,'CZ.84.0711','CZ','CZ.84','Okres Jeseník','Okres Jesenik',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11893,'CZ.52.8378769','CZ','CZ.52','Praha 1','Praha 1',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11894,'CZ.52.8378770','CZ','CZ.52','Praha 2','Praha 2',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11895,'CZ.52.8378771','CZ','CZ.52','Praha 3','Praha 3',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11896,'CZ.52.8378772','CZ','CZ.52','Praha 4','Praha 4',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11897,'CZ.52.8378773','CZ','CZ.52','Praha 5','Praha 5',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11898,'CZ.52.8378774','CZ','CZ.52','Praha 6','Praha 6',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11899,'CZ.52.8378775','CZ','CZ.52','Praha 7','Praha 7',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11900,'CZ.52.8378776','CZ','CZ.52','Praha 8','Praha 8',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11901,'CZ.52.8378777','CZ','CZ.52','Praha 9','Praha 9',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11902,'CZ.52.8378778','CZ','CZ.52','Praha 10','Praha 10',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11903,'CZ.52.8378779','CZ','CZ.52','Praha 11','Praha 11',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11904,'CZ.52.8378780','CZ','CZ.52','Praha 12','Praha 12',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11905,'CZ.52.8378781','CZ','CZ.52','Praha 13','Praha 13',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11906,'CZ.52.8378782','CZ','CZ.52','Praha 14','Praha 14',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11907,'CZ.52.8378784','CZ','CZ.52','Praha 15','Praha 15',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11908,'CZ.52.8378785','CZ','CZ.52','Praha 16','Praha 16',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11909,'CZ.52.8378787','CZ','CZ.52','Praha 17','Praha 17',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11910,'CZ.52.8378788','CZ','CZ.52','Praha 18','Praha 18',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11911,'CZ.52.8378789','CZ','CZ.52','Praha 19','Praha 19',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11912,'CZ.52.8378790','CZ','CZ.52','Praha 20','Praha 20',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11913,'CZ.52.8378792','CZ','CZ.52','Praha 21','Praha 21',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (11914,'CZ.52.8378793','CZ','CZ.52','Praha 22','Praha 22',1);
/*!40000 ALTER TABLE `<<prefix>>subadmin2` ENABLE KEYS */;
--
-- Dumping data for table `<<prefix>>cities`
--
/*!40000 ALTER TABLE `<<prefix>>cities` DISABLE KEYS */;
INSERT INTO `<<prefix>>cities` VALUES (3061284,'CZ','Dvůr Králové nad Labem','Dvur Kralove nad Labem',50.4317,15.814,'P','PPL','CZ.82','CZ.82.0525',16150,'Europe/Prague',1,'2017-01-26 23:00:00','2017-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3061327,'CZ','Zubří','Zubri',49.466,18.0925,'P','PPL','CZ.90','CZ.90.0723',5409,'Europe/Prague',1,'2017-02-02 23:00:00','2017-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3061344,'CZ','Znojmo','Znojmo',48.8555,16.0488,'P','PPL','CZ.78','CZ.78.0627',35280,'Europe/Prague',1,'2015-11-12 23:00:00','2015-11-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3061370,'CZ','Zlín','Zlin',49.2265,17.6707,'P','PPLA','CZ.90','CZ.90.0724',78759,'Europe/Prague',1,'2014-07-20 23:00:00','2014-07-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3061562,'CZ','Železný Brod','Zelezny Brod',50.6427,15.2541,'P','PPL','CZ.83','CZ.83.0512',6442,'Europe/Prague',1,'2017-01-29 23:00:00','2017-01-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3061692,'CZ','Žďár nad Sázavou Druhy','Zd\'ar nad Sazavou Druhy',49.5873,15.9321,'P','PPLX','CZ.80','CZ.80.0615',23996,'Europe/Prague',1,'2017-01-24 23:00:00','2017-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3061695,'CZ','Žďár nad Sázavou','Zd\'ar nad Sazavou',49.5626,15.9392,'P','PPL','CZ.80','CZ.80.0615',24030,'Europe/Prague',1,'2015-02-05 23:00:00','2015-02-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3061822,'CZ','Žatec','Zatec',50.3272,13.5458,'P','PPL','CZ.89','CZ.89.0424',19607,'Europe/Prague',1,'2017-04-05 23:00:00','2017-04-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3061888,'CZ','Žamberk','Zamberk',50.086,16.4674,'P','PPL','CZ.86','CZ.86.0534',6082,'Europe/Prague',1,'2017-02-06 23:00:00','2017-02-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3062111,'CZ','Zábřeh','Zabreh',49.8826,16.8722,'P','PPL','CZ.84','CZ.84.0715',14360,'Europe/Prague',1,'2017-01-30 23:00:00','2017-01-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3062214,'CZ','Vysoké Mýto','Vysoke Myto',49.9532,16.1617,'P','PPL','CZ.86','CZ.86.0532',12293,'Europe/Prague',1,'2012-11-25 23:00:00','2012-11-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3062257,'CZ','Vysočany','Vysocany',50.1094,14.5167,'P','PPLX','CZ.52','CZ.52.8378777',11646,'Europe/Prague',1,'2013-09-28 23:00:00','2013-09-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3062283,'CZ','Vyškov','Vyskov',49.2775,16.999,'P','PPL','CZ.78','CZ.78.0626',22265,'Europe/Prague',1,'2013-01-03 23:00:00','2013-01-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3062339,'CZ','Vsetín','Vsetin',49.3387,17.9962,'P','PPL','CZ.90','CZ.90.0723',28575,'Europe/Prague',1,'2012-12-18 23:00:00','2012-12-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3062439,'CZ','Vrchlabí','Vrchlabi',50.627,15.6094,'P','PPL','CZ.82','CZ.82.0525',12898,'Europe/Prague',1,'2012-12-09 23:00:00','2012-12-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3062446,'CZ','Vrbno pod Pradědem','Vrbno pod Pradedem',50.1209,17.3832,'P','PPL','CZ.85','CZ.85.0801',6072,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3062497,'CZ','Vratimov','Vratimov',49.77,18.3102,'P','PPL','CZ.85','CZ.85.0806',6378,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3062642,'CZ','Vodňany','Vodnany',49.1479,14.1751,'P','PPL','CZ.79','CZ.79.0316',6687,'Europe/Prague',1,'2017-01-22 23:00:00','2017-01-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3062759,'CZ','Vlašim','Vlasim',49.7063,14.8988,'P','PPL','CZ.88','CZ.88.0201',12225,'Europe/Prague',1,'2017-02-08 23:00:00','2017-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3062811,'CZ','Vítkov','Vitkov',49.7744,17.7494,'P','PPL','CZ.85','CZ.85.0805',6202,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3062888,'CZ','Vimperk','Vimperk',49.0586,13.7829,'P','PPL','CZ.79','CZ.79.0315',8043,'Europe/Prague',1,'2007-09-29 23:00:00','2007-09-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063032,'CZ','Veselí nad Moravou','Veseli nad Moravou',48.9536,17.3765,'P','PPL','CZ.78','CZ.78.0625',12081,'Europe/Prague',1,'2017-01-17 23:00:00','2017-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063033,'CZ','Veselí nad Lužnicí','Veseli nad Luznici',49.1843,14.6973,'P','PPL','CZ.79','CZ.79.0317',6534,'Europe/Prague',1,'2013-01-14 23:00:00','2013-01-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063196,'CZ','Velké Meziříčí','Velke Mezirici',49.3552,16.0122,'P','PPL','CZ.80','CZ.80.0615',11753,'Europe/Prague',1,'2011-04-16 23:00:00','2011-04-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063375,'CZ','Varnsdorf','Varnsdorf',50.9115,14.6182,'P','PPL','CZ.89','CZ.89.0421',15895,'Europe/Prague',1,'2017-02-05 23:00:00','2017-02-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063447,'CZ','Valašské Meziříčí','Valasske Mezirici',49.4718,17.9711,'P','PPL','CZ.90','CZ.90.0723',27481,'Europe/Prague',1,'2017-02-02 23:00:00','2017-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063448,'CZ','Valašské Klobouky','Valasske Klobouky',49.1406,18.0076,'P','PPL','CZ.90','CZ.90.0724',5201,'Europe/Prague',1,'2017-02-02 23:00:00','2017-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063546,'CZ','Ústí nad Orlicí','Usti nad Orlici',49.9739,16.3936,'P','PPL','CZ.86','CZ.86.0534',15151,'Europe/Prague',1,'2007-09-30 23:00:00','2007-09-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063548,'CZ','Ústí nad Labem','Usti nad Labem',50.6607,14.0323,'P','PPLA','CZ.89','CZ.89.0427',94105,'Europe/Prague',1,'2014-03-06 23:00:00','2014-03-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063590,'CZ','Úpice','Upice',50.5124,16.0161,'P','PPL','CZ.82','CZ.82.0525',5959,'Europe/Prague',1,'2017-01-26 23:00:00','2017-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063596,'CZ','Uničov','Unicov',49.7709,17.1214,'P','PPL','CZ.84','CZ.84.0712',12385,'Europe/Prague',1,'2013-01-02 23:00:00','2013-01-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063736,'CZ','Uherský Brod','Uhersky Brod',49.0251,17.6472,'P','PPL','CZ.90','CZ.90.0722',17508,'Europe/Prague',1,'2015-11-18 23:00:00','2015-11-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063739,'CZ','Uherské Hradiště','Uherske Hradiste',49.0698,17.4597,'P','PPL','CZ.90','CZ.90.0722',26421,'Europe/Prague',1,'2017-07-12 23:00:00','2017-07-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063794,'CZ','Týn nad Vltavou','Tyn nad Vltavou',49.2234,14.4206,'P','PPL','CZ.79','CZ.79.0311',8296,'Europe/Prague',1,'2017-01-18 23:00:00','2017-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063797,'CZ','Týniště nad Orlicí','Tyniste nad Orlici',50.1514,16.0777,'P','PPL','CZ.82','CZ.82.0524',6342,'Europe/Prague',1,'2017-01-26 23:00:00','2017-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063804,'CZ','Týnec nad Sázavou','Tynec nad Sazavou',49.8335,14.5898,'P','PPL','CZ.88','CZ.88.0201',5165,'Europe/Prague',1,'2017-02-08 23:00:00','2017-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063853,'CZ','Turnov','Turnov',50.5836,15.1519,'P','PPL','CZ.83','CZ.83.0514',14507,'Europe/Prague',1,'2013-01-03 23:00:00','2013-01-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3063907,'CZ','Trutnov','Trutnov',50.561,15.9127,'P','PPL','CZ.82','CZ.82.0525',31398,'Europe/Prague',1,'2012-12-12 23:00:00','2012-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064000,'CZ','Třinec','Trinec',49.6776,18.6708,'P','PPL','CZ.85','CZ.85.0802',38415,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064029,'CZ','Třešť','Trest\'',49.2909,15.4821,'P','PPL','CZ.80','CZ.80.0612',5979,'Europe/Prague',1,'2012-12-13 23:00:00','2012-12-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064079,'CZ','Třeboň','Trebon',49.0036,14.7706,'P','PPL','CZ.79','CZ.79.0313',8862,'Europe/Prague',1,'2013-01-03 23:00:00','2013-01-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064104,'CZ','Třebíč','Trebic',49.2149,15.8817,'P','PPL','CZ.80','CZ.80.0614',38785,'Europe/Prague',1,'2013-01-03 23:00:00','2013-01-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064122,'CZ','Třebechovice pod Orebem','Trebechovice pod Orebem',50.201,15.9922,'P','PPL','CZ.82','CZ.82.0521',5611,'Europe/Prague',1,'2017-01-25 23:00:00','2017-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064211,'CZ','Tišnov','Tisnov',49.3487,16.4244,'P','PPL','CZ.78','CZ.78.0623',8227,'Europe/Prague',1,'2017-01-17 23:00:00','2017-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064288,'CZ','Teplice','Teplice',50.6404,13.8245,'P','PPL','CZ.89','CZ.89.0426',51223,'Europe/Prague',1,'2015-11-12 23:00:00','2015-11-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064316,'CZ','Telč','Telc',49.1842,15.4528,'P','PPL','CZ.80','CZ.80.0612',5883,'Europe/Prague',1,'2012-12-13 23:00:00','2012-12-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064358,'CZ','Tanvald','Tanvald',50.7374,15.3059,'P','PPL','CZ.83','CZ.83.0512',6921,'Europe/Prague',1,'2017-02-14 23:00:00','2017-02-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064373,'CZ','Tachov','Tachov',49.7953,12.6336,'P','PPL','CZ.87','CZ.87.0327',12640,'Europe/Prague',1,'2013-01-02 23:00:00','2013-01-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064379,'CZ','Tábor','Tabor',49.4144,14.6578,'P','PPL','CZ.79','CZ.79.0317',36264,'Europe/Prague',1,'2007-11-04 23:00:00','2007-11-04 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064454,'CZ','Svitavy','Svitavy',49.7559,16.4683,'P','PPL','CZ.86','CZ.86.0533',17427,'Europe/Prague',1,'2015-11-12 23:00:00','2015-11-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064510,'CZ','Světlá nad Sázavou','Svetla nad Sazavou',49.668,15.4039,'P','PPL','CZ.80','CZ.80.0611',7037,'Europe/Prague',1,'2013-01-16 23:00:00','2013-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064662,'CZ','Sušice','Susice',49.2311,13.5202,'P','PPL','CZ.87','CZ.87.0322',11483,'Europe/Prague',1,'2012-12-17 23:00:00','2012-12-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064673,'CZ','Šumperk','Sumperk',49.9653,16.9706,'P','PPL','CZ.84','CZ.84.0715',28768,'Europe/Prague',1,'2012-12-09 23:00:00','2012-12-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064807,'CZ','Studénka','Studenka',49.7234,18.0785,'P','PPL','CZ.85','CZ.85.0804',10341,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064894,'CZ','Střížkov','Strizkov',50.1267,14.4936,'P','PPLX','CZ.52','CZ.52.8378777',14069,'Europe/Prague',1,'2013-09-28 23:00:00','2013-09-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064919,'CZ','Stříbro','Stribro',49.7556,12.997,'P','PPL','CZ.87','CZ.87.0327',7689,'Europe/Prague',1,'2013-01-26 23:00:00','2013-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3064995,'CZ','Strážnice','Straznice',48.901,17.3168,'P','PPL','CZ.78','CZ.78.0625',5900,'Europe/Prague',1,'2017-01-17 23:00:00','2017-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065067,'CZ','Strakonice','Strakonice',49.2614,13.9024,'P','PPL','CZ.79','CZ.79.0316',23545,'Europe/Prague',1,'2017-01-22 23:00:00','2017-01-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065117,'CZ','Stochov','Stochov',50.1463,13.9635,'P','PPL','CZ.88','CZ.88.0203',5538,'Europe/Prague',1,'2017-02-08 23:00:00','2017-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065163,'CZ','Štětí','Steti',50.453,14.3742,'P','PPL','CZ.89','CZ.89.0423',9165,'Europe/Prague',1,'2013-01-15 23:00:00','2013-01-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065166,'CZ','Šternberk','Sternberk',49.7304,17.2989,'P','PPL','CZ.84','CZ.84.0712',13967,'Europe/Prague',1,'2012-11-25 23:00:00','2012-11-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065281,'CZ','Starý Bohumín','Stary Bohumin',49.9169,18.3362,'P','PPLX','CZ.85','CZ.85.0803',23034,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065328,'CZ','Staré Město','Stare Mesto',50.087,14.4202,'P','PPLX','CZ.52','CZ.52.8378769',10127,'Europe/Prague',1,'2014-09-14 23:00:00','2014-09-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065335,'CZ','Staré Město','Stare Mesto',49.0751,17.4334,'P','PPL','CZ.90','CZ.90.0722',6742,'Europe/Prague',1,'2012-12-12 23:00:00','2012-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065617,'CZ','Sokolov','Sokolov',50.1813,12.6401,'P','PPL','CZ.81','CZ.81.0413',24901,'Europe/Prague',1,'2013-01-10 23:00:00','2013-01-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065644,'CZ','Soběslav','Sobeslav',49.2599,14.7186,'P','PPL','CZ.79','CZ.79.0317',7308,'Europe/Prague',1,'2017-01-22 23:00:00','2017-01-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065768,'CZ','Šluknov','Sluknov',51.0037,14.4526,'P','PPL','CZ.89','CZ.89.0421',5701,'Europe/Prague',1,'2012-12-09 23:00:00','2012-12-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065824,'CZ','Slavkov u Brna','Slavkov u Brna',49.1533,16.8765,'P','PPL','CZ.78','CZ.78.0626',5936,'Europe/Prague',1,'2017-01-17 23:00:00','2017-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065843,'CZ','Slavičín','Slavicin',49.088,17.8735,'P','PPL','CZ.90','CZ.90.0724',7079,'Europe/Prague',1,'2017-02-02 23:00:00','2017-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065901,'CZ','Šlapanice','Slapanice',49.1686,16.7273,'P','PPL','CZ.78','CZ.78.0623',7109,'Europe/Prague',1,'2017-01-17 23:00:00','2017-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065903,'CZ','Slaný','Slany',50.2305,14.0869,'P','PPL','CZ.88','CZ.88.0203',15070,'Europe/Prague',1,'2013-01-02 23:00:00','2013-01-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3065921,'CZ','Skuteč','Skutec',49.8435,15.9965,'P','PPL','CZ.86','CZ.86.0531',5415,'Europe/Prague',1,'2013-01-15 23:00:00','2013-01-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066154,'CZ','Sezimovo Ústí','Sezimovo Usti',49.3852,14.6848,'P','PPL','CZ.79','CZ.79.0317',7420,'Europe/Prague',1,'2013-01-02 23:00:00','2013-01-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066184,'CZ','Šenov','Senov',49.7932,18.3761,'P','PPL','CZ.85','CZ.85.0806',5462,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066220,'CZ','Semily','Semily',50.6019,15.3355,'P','PPL','CZ.83','CZ.83.0514',9040,'Europe/Prague',1,'2017-01-29 23:00:00','2017-01-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066333,'CZ','Sedlčany','Sedlcany',49.6606,14.4266,'P','PPL','CZ.88','CZ.88.020B',7836,'Europe/Prague',1,'2017-02-11 23:00:00','2017-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066483,'CZ','Rýmařov','Rymarov',49.9318,17.2718,'P','PPL','CZ.85','CZ.85.0801',9069,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066492,'CZ','Rychvald','Rychvald',49.8662,18.3763,'P','PPL','CZ.85','CZ.85.0803',6771,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066503,'CZ','Rychnov nad Kněžnou','Rychnov nad Kneznou',50.1628,16.2749,'P','PPL','CZ.82','CZ.82.0524',11695,'Europe/Prague',1,'2013-01-10 23:00:00','2013-01-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066578,'CZ','Rumburk','Rumburk',50.9515,14.557,'P','PPL','CZ.89','CZ.89.0421',11101,'Europe/Prague',1,'2013-01-20 23:00:00','2013-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066636,'CZ','Roztoky','Roztoky',50.1584,14.3976,'P','PPL','CZ.88','CZ.88.020A',5956,'Europe/Prague',1,'2017-02-10 23:00:00','2017-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066651,'CZ','Rožnov pod Radhoštěm','Roznov pod Radhostem',49.4585,18.143,'P','PPL','CZ.90','CZ.90.0723',17238,'Europe/Prague',1,'2017-05-21 23:00:00','2017-05-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066719,'CZ','Rousínov','Rousinov',49.2013,16.8822,'P','PPL','CZ.78','CZ.78.0626',5016,'Europe/Prague',1,'2017-01-17 23:00:00','2017-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066727,'CZ','Roudnice nad Labem','Roudnice nad Labem',50.4253,14.2618,'P','PPL','CZ.89','CZ.89.0423',13084,'Europe/Prague',1,'2017-02-05 23:00:00','2017-02-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066759,'CZ','Rosice','Rosice',49.1823,16.3879,'P','PPL','CZ.78','CZ.78.0623',5287,'Europe/Prague',1,'2013-01-02 23:00:00','2013-01-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066794,'CZ','Rokycany','Rokycany',49.7427,13.5946,'P','PPL','CZ.87','CZ.87.0326',13826,'Europe/Prague',1,'2012-11-22 23:00:00','2012-11-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3066878,'CZ','Říčany','Ricany',49.9917,14.6543,'P','PPL','CZ.88','CZ.88.0209',11329,'Europe/Prague',1,'2013-01-02 23:00:00','2013-01-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3067051,'CZ','Rakovník','Rakovnik',50.1037,13.7334,'P','PPL','CZ.88','CZ.88.020C',16473,'Europe/Prague',1,'2017-02-10 23:00:00','2017-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3067395,'CZ','Protivín','Protivin',49.1995,14.2172,'P','PPL','CZ.79','CZ.79.0314',5021,'Europe/Prague',1,'2017-01-19 23:00:00','2017-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3067421,'CZ','Prostějov','Prostejov',49.4719,17.1118,'P','PPL','CZ.84','CZ.84.0713',47374,'Europe/Prague',1,'2012-12-18 23:00:00','2012-12-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3067433,'CZ','Prosek','Prosek',50.1152,14.5069,'P','PPLX','CZ.52','CZ.52.8378777',15581,'Europe/Prague',1,'2013-09-28 23:00:00','2013-09-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3067542,'CZ','Příbram','Pribram',49.6899,14.0104,'P','PPL','CZ.88','CZ.88.020B',35251,'Europe/Prague',1,'2013-01-10 23:00:00','2013-01-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3067544,'CZ','Příbor','Pribor',49.6409,18.145,'P','PPL','CZ.85','CZ.85.0804',8789,'Europe/Prague',1,'2013-12-11 23:00:00','2013-12-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3067553,'CZ','Přeštice','Prestice',49.573,13.3335,'P','PPL','CZ.87','CZ.87.0324',6353,'Europe/Prague',1,'2017-02-07 23:00:00','2017-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3067580,'CZ','Přerov','Prerov',49.4551,17.4509,'P','PPL','CZ.84','CZ.84.0714',47311,'Europe/Prague',1,'2017-01-29 23:00:00','2017-01-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3067594,'CZ','Přelouč','Prelouc',50.0398,15.5603,'P','PPL','CZ.86','CZ.86.0532',8586,'Europe/Prague',1,'2013-01-24 23:00:00','2013-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3067696,'CZ','Prague','Prague',50.088,14.4208,'P','PPLC','CZ.52',NULL,1165581,'Europe/Prague',1,'2013-11-24 23:00:00','2013-11-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3067713,'CZ','Prachatice','Prachatice',49.0129,13.9975,'P','PPL','CZ.79','CZ.79.0315',11803,'Europe/Prague',1,'2017-01-19 23:00:00','2017-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3067870,'CZ','Polná','Polna',49.487,15.7188,'P','PPL','CZ.80','CZ.80.0612',5006,'Europe/Prague',1,'2013-01-14 23:00:00','2013-01-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3067882,'CZ','Polička','Policka',49.7146,16.2654,'P','PPL','CZ.86','CZ.86.0533',9129,'Europe/Prague',1,'2013-01-15 23:00:00','2013-01-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068107,'CZ','Poděbrady','Podebrady',50.1424,15.1188,'P','PPL','CZ.88','CZ.88.0208',13128,'Europe/Prague',1,'2012-11-22 23:00:00','2012-11-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068119,'CZ','Podbořany','Podborany',50.2294,13.4119,'P','PPL','CZ.89','CZ.89.0424',6212,'Europe/Prague',1,'2017-02-05 23:00:00','2017-02-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068160,'CZ','Pilsen','Pilsen',49.7475,13.3776,'P','PPLA','CZ.87','CZ.87.0323',164180,'Europe/Prague',1,'2014-05-10 23:00:00','2014-05-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068246,'CZ','Planá','Plana',49.8682,12.7438,'P','PPL','CZ.87','CZ.87.0327',5450,'Europe/Prague',1,'2012-12-18 23:00:00','2012-12-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068293,'CZ','Písek','Pisek',49.3088,14.1475,'P','PPL','CZ.79','CZ.79.0314',29774,'Europe/Prague',1,'2012-12-09 23:00:00','2012-12-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068329,'CZ','Petřvald','Petrvald',49.831,18.3894,'P','PPL','CZ.85','CZ.85.0803',6854,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068445,'CZ','Pelhřimov','Pelhrimov',49.4313,15.2234,'P','PPL','CZ.80','CZ.80.0613',16541,'Europe/Prague',1,'2012-12-13 23:00:00','2012-12-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068582,'CZ','Pardubice','Pardubice',50.0407,15.7766,'P','PPLA','CZ.86','CZ.86.0532',88741,'Europe/Prague',1,'2012-12-12 23:00:00','2012-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068647,'CZ','Pacov','Pacov',49.4708,15.0017,'P','PPL','CZ.80','CZ.80.0613',5145,'Europe/Prague',1,'2017-01-23 23:00:00','2017-01-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068690,'CZ','Otrokovice','Otrokovice',49.2093,17.5394,'P','PPL','CZ.90','CZ.90.0724',18857,'Europe/Prague',1,'2013-01-02 23:00:00','2013-01-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068766,'CZ','Ostrov','Ostrov',50.3059,12.9391,'P','PPL','CZ.81','CZ.81.0412',17206,'Europe/Prague',1,'2017-01-25 23:00:00','2017-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068799,'CZ','Ostrava','Ostrava',49.8346,18.282,'P','PPLA','CZ.85','CZ.85.0806',313088,'Europe/Prague',1,'2015-10-22 23:00:00','2015-10-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068873,'CZ','Orlová','Orlova',49.8453,18.4301,'P','PPL','CZ.85','CZ.85.0803',34282,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3068927,'CZ','Opava','Opava',49.9387,17.9026,'P','PPL','CZ.85','CZ.85.0805',60252,'Europe/Prague',1,'2012-12-23 23:00:00','2012-12-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069011,'CZ','Olomouc','Olomouc',49.5955,17.2518,'P','PPLA','CZ.84','CZ.84.0712',101268,'Europe/Prague',1,'2012-12-09 23:00:00','2012-12-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069136,'CZ','Odry','Odry',49.6626,17.8308,'P','PPL','CZ.85','CZ.85.0804',7395,'Europe/Prague',1,'2016-09-05 23:00:00','2016-09-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069230,'CZ','Nýrsko','Nyrsko',49.2939,13.1435,'P','PPL','CZ.87','CZ.87.0322',5070,'Europe/Prague',1,'2013-01-02 23:00:00','2013-01-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069232,'CZ','Nýřany','Nyrany',49.7114,13.2119,'P','PPL','CZ.87','CZ.87.0325',6942,'Europe/Prague',1,'2017-02-07 23:00:00','2017-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069236,'CZ','Nymburk','Nymburk',50.1861,15.0417,'P','PPL','CZ.88','CZ.88.0208',14373,'Europe/Prague',1,'2012-12-09 23:00:00','2012-12-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069305,'CZ','Nový Jičín','Novy Jicin',49.5944,18.0103,'P','PPL','CZ.85','CZ.85.0804',26547,'Europe/Prague',1,'2013-12-11 23:00:00','2013-12-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069377,'CZ','Nový Bydžov','Novy Bydzov',50.2415,15.4908,'P','PPL','CZ.82','CZ.82.0521',7160,'Europe/Prague',1,'2017-01-25 23:00:00','2017-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069381,'CZ','Nový Bor','Novy Bor',50.7576,14.5555,'P','PPL','CZ.83','CZ.83.0511',12171,'Europe/Prague',1,'2016-09-05 23:00:00','2016-09-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069431,'CZ','Nové Strašecí','Nove Straseci',50.1527,13.9004,'P','PPL','CZ.88','CZ.88.020C',5082,'Europe/Prague',1,'2017-02-10 23:00:00','2017-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069465,'CZ','Nové Město na Moravě','Nove Mesto na Morave',49.5614,16.0742,'P','PPL','CZ.80','CZ.80.0615',10537,'Europe/Prague',1,'2012-12-12 23:00:00','2012-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069466,'CZ','Nové Město nad Metují','Nove Mesto nad Metuji',50.3446,16.1515,'P','PPL','CZ.82','CZ.82.0523',10126,'Europe/Prague',1,'2016-09-05 23:00:00','2016-09-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069669,'CZ','Nová Paka','Nova Paka',50.4945,15.515,'P','PPL','CZ.82','CZ.82.0522',9219,'Europe/Prague',1,'2017-01-25 23:00:00','2017-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069844,'CZ','Neratovice','Neratovice',50.2593,14.5176,'P','PPL','CZ.88','CZ.88.0206',16427,'Europe/Prague',1,'2017-02-09 23:00:00','2017-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3069934,'CZ','Nejdek','Nejdek',50.3224,12.7294,'P','PPL','CZ.81','CZ.81.0412',8565,'Europe/Prague',1,'2017-02-07 23:00:00','2017-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070045,'CZ','Napajedla','Napajedla',49.1716,17.5119,'P','PPL','CZ.90','CZ.90.0724',7662,'Europe/Prague',1,'2012-12-09 23:00:00','2012-12-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070055,'CZ','Náměšť nad Oslavou','Namest\' nad Oslavou',49.2073,16.1585,'P','PPL','CZ.80','CZ.80.0614',5192,'Europe/Prague',1,'2017-01-24 23:00:00','2017-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070122,'CZ','Náchod','Nachod',50.4167,16.1629,'P','PPL','CZ.82','CZ.82.0523',21263,'Europe/Prague',1,'2012-12-12 23:00:00','2012-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070291,'CZ','Most','Most',50.503,13.6362,'P','PPL','CZ.89','CZ.89.0425',67905,'Europe/Prague',1,'2015-11-12 23:00:00','2015-11-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070310,'CZ','Moravský Krumlov','Moravsky Krumlov',49.0489,16.3117,'P','PPL','CZ.78','CZ.78.0627',6050,'Europe/Prague',1,'2017-01-16 23:00:00','2017-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070323,'CZ','Moravské Budějovice','Moravske Budejovice',49.0521,15.8086,'P','PPL','CZ.80','CZ.80.0614',7971,'Europe/Prague',1,'2017-01-24 23:00:00','2017-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070325,'CZ','Moravská Třebová','Moravska Trebova',49.7579,16.6643,'P','PPL','CZ.86','CZ.86.0533',11414,'Europe/Prague',1,'2013-01-10 23:00:00','2013-01-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070409,'CZ','Mohelnice','Mohelnice',49.777,16.9195,'P','PPL','CZ.84','CZ.84.0715',9742,'Europe/Prague',1,'2012-12-09 23:00:00','2012-12-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070420,'CZ','Modřany','Modrany',50.0112,14.4096,'P','PPLX','CZ.52','CZ.52.8378780',31901,'Europe/Prague',1,'2013-09-28 23:00:00','2013-09-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070451,'CZ','Mnichovo Hradiště','Mnichovo Hradiste',50.5272,14.9713,'P','PPL','CZ.88','CZ.88.0207',8368,'Europe/Prague',1,'2017-02-09 23:00:00','2017-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070544,'CZ','Mladá Boleslav','Mlada Boleslav',50.4114,14.9032,'P','PPL','CZ.88','CZ.88.0207',43684,'Europe/Prague',1,'2016-09-25 23:00:00','2016-09-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070622,'CZ','Mimoň','Mimon',50.6587,14.7247,'P','PPL','CZ.83','CZ.83.0511',6692,'Europe/Prague',1,'2016-09-05 23:00:00','2016-09-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070628,'CZ','Milovice','Milovice',50.226,14.8886,'P','PPL','CZ.88','CZ.88.0208',5461,'Europe/Prague',1,'2017-02-10 23:00:00','2017-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070678,'CZ','Milevsko','Milevsko',49.4509,14.36,'P','PPL','CZ.79','CZ.79.0314',9343,'Europe/Prague',1,'2017-01-19 23:00:00','2017-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070720,'CZ','Mikulov','Mikulov',48.8056,16.6378,'P','PPL','CZ.78','CZ.78.0624',7608,'Europe/Prague',1,'2012-12-12 23:00:00','2012-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3070862,'CZ','Mělník','Melnik',50.3505,14.4741,'P','PPL','CZ.88','CZ.88.0206',19231,'Europe/Prague',1,'2012-12-12 23:00:00','2012-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071024,'CZ','Mariánské Lázně','Marianske Lazne',49.9646,12.7012,'P','PPL','CZ.81','CZ.81.0411',14277,'Europe/Prague',1,'2012-11-22 23:00:00','2012-11-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071213,'CZ','Malá Strana','Mala Strana',50.0877,14.4045,'P','PPLX','CZ.52','CZ.52.8378769',6350,'Europe/Prague',1,'2014-09-13 23:00:00','2014-09-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071304,'CZ','Lysá nad Labem','Lysa nad Labem',50.2014,14.8328,'P','PPL','CZ.88','CZ.88.0208',8194,'Europe/Prague',1,'2017-02-10 23:00:00','2017-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071407,'CZ','Luhačovice','Luhacovice',49.0998,17.7575,'P','PPL','CZ.90','CZ.90.0724',5554,'Europe/Prague',1,'2013-01-24 23:00:00','2013-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071480,'CZ','Lovosice','Lovosice',50.515,14.051,'P','PPL','CZ.89','CZ.89.0423',9196,'Europe/Prague',1,'2017-02-05 23:00:00','2017-02-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071507,'CZ','Louny','Louny',50.357,13.7967,'P','PPL','CZ.89','CZ.89.0424',19147,'Europe/Prague',1,'2012-12-18 23:00:00','2012-12-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071606,'CZ','Lomnice nad Popelkou','Lomnice nad Popelkou',50.5306,15.3734,'P','PPL','CZ.83','CZ.83.0514',5957,'Europe/Prague',1,'2013-01-16 23:00:00','2013-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071665,'CZ','Litvínov','Litvinov',50.6042,13.6181,'P','PPL','CZ.89','CZ.89.0425',27022,'Europe/Prague',1,'2013-01-10 23:00:00','2013-01-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071669,'CZ','Litovel','Litovel',49.7012,17.0762,'P','PPL','CZ.84','CZ.84.0712',10062,'Europe/Prague',1,'2017-01-30 23:00:00','2017-01-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071675,'CZ','Litomyšl','Litomysl',49.8681,16.313,'P','PPL','CZ.86','CZ.86.0533',10146,'Europe/Prague',1,'2012-12-09 23:00:00','2012-12-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071677,'CZ','Litoměřice','Litomerice',50.5335,14.1318,'P','PPL','CZ.89','CZ.89.0423',24489,'Europe/Prague',1,'2015-11-12 23:00:00','2015-11-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071791,'CZ','Lipník nad Bečvou','Lipnik nad Becvou',49.5272,17.5859,'P','PPL','CZ.84','CZ.84.0714',8369,'Europe/Prague',1,'2013-01-24 23:00:00','2013-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071961,'CZ','Liberec','Liberec',50.7671,15.0562,'P','PPLA','CZ.83','CZ.83.0513',97770,'Europe/Prague',1,'2012-11-22 23:00:00','2012-11-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3071966,'CZ','Libeň','Liben',50.1082,14.4746,'P','PPLX','CZ.52','CZ.52.8378776',31756,'Europe/Prague',1,'2013-09-28 23:00:00','2013-09-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072130,'CZ','Letovice','Letovice',49.5471,16.5736,'P','PPL','CZ.78','CZ.78.0621',6799,'Europe/Prague',1,'2013-01-24 23:00:00','2013-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072134,'CZ','Letohrad','Letohrad',50.0358,16.4988,'P','PPL','CZ.86','CZ.86.0534',6195,'Europe/Prague',1,'2018-01-02 23:00:00','2018-01-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072137,'CZ','Letňany','Letnany',50.1333,14.5167,'P','PPLX','CZ.52','CZ.52.8378788',15862,'Europe/Prague',1,'2013-09-28 23:00:00','2013-09-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072235,'CZ','Ledeč nad Sázavou','Ledec nad Sazavou',49.6952,15.2777,'P','PPL','CZ.80','CZ.80.0611',6048,'Europe/Prague',1,'2017-01-22 23:00:00','2017-01-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072332,'CZ','Lanškroun','Lanskroun',49.9122,16.6119,'P','PPL','CZ.86','CZ.86.0534',9847,'Europe/Prague',1,'2017-12-30 23:00:00','2017-12-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072394,'CZ','Kynšperk nad Ohří','Kynsperk nad Ohri',50.1189,12.5303,'P','PPL','CZ.81','CZ.81.0413',5085,'Europe/Prague',1,'2017-01-25 23:00:00','2017-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072407,'CZ','Kyjov','Kyjov',49.0102,17.1225,'P','PPL','CZ.78','CZ.78.0625',12191,'Europe/Prague',1,'2012-12-12 23:00:00','2012-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072463,'CZ','Kutná Hora','Kutna Hora',49.9484,15.2682,'P','PPL','CZ.88','CZ.88.0205',21280,'Europe/Prague',1,'2015-11-12 23:00:00','2015-11-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072476,'CZ','Kuřim','Kurim',49.2985,16.5314,'P','PPL','CZ.78','CZ.78.0623',9283,'Europe/Prague',1,'2017-01-17 23:00:00','2017-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072497,'CZ','Kunovice','Kunovice',49.045,17.4701,'P','PPL','CZ.90','CZ.90.0722',5148,'Europe/Prague',1,'2015-04-22 23:00:00','2015-04-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072598,'CZ','Krupka','Krupka',50.6845,13.8581,'P','PPL','CZ.89','CZ.89.0426',13687,'Europe/Prague',1,'2017-02-05 23:00:00','2017-02-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072649,'CZ','Kroměříž','Kromeriz',49.2979,17.3931,'P','PPL','CZ.90','CZ.90.0721',29126,'Europe/Prague',1,'2015-11-12 23:00:00','2015-11-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072656,'CZ','Krnov','Krnov',50.0897,17.7038,'P','PPL','CZ.85','CZ.85.0801',25547,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072841,'CZ','Kravaře','Kravare',49.932,18.0047,'P','PPL','CZ.85','CZ.85.0805',6787,'Europe/Prague',1,'2016-09-06 23:00:00','2016-09-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072903,'CZ','Kraslice','Kraslice',50.3237,12.5175,'P','PPL','CZ.81','CZ.81.0413',7159,'Europe/Prague',1,'2017-01-25 23:00:00','2017-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072927,'CZ','Králův Dvůr','Kraluv Dvur',49.9498,14.0344,'P','PPL','CZ.88','CZ.88.0202',5805,'Europe/Prague',1,'2013-01-10 23:00:00','2013-01-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3072929,'CZ','Kralupy nad Vltavou','Kralupy nad Vltavou',50.2411,14.3115,'P','PPL','CZ.88',NULL,17373,'Europe/Prague',1,'2015-03-09 23:00:00','2015-03-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3073149,'CZ','Kostelec nad Orlicí','Kostelec nad Orlici',50.1227,16.2132,'P','PPL','CZ.82','CZ.82.0524',6184,'Europe/Prague',1,'2017-01-26 23:00:00','2017-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3073254,'CZ','Kopřivnice','Koprivnice',49.5995,18.1448,'P','PPL','CZ.85','CZ.85.0804',23424,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3073371,'CZ','Kolín','Kolin',50.0281,15.1998,'P','PPL','CZ.88','CZ.88.0204',29690,'Europe/Prague',1,'2016-10-31 23:00:00','2016-10-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3073407,'CZ','Kojetín','Kojetin',49.3518,17.3021,'P','PPL','CZ.84','CZ.84.0714',6397,'Europe/Prague',1,'2017-01-29 23:00:00','2017-01-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3073660,'CZ','Klatovy','Klatovy',49.3955,13.295,'P','PPL','CZ.87','CZ.87.0322',23102,'Europe/Prague',1,'2017-02-06 23:00:00','2017-02-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3073668,'CZ','Klášterec nad Ohří','Klasterec nad Ohri',50.3886,13.1834,'P','PPL','CZ.89','CZ.89.0422',15040,'Europe/Prague',1,'2014-11-03 23:00:00','2014-11-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3073699,'CZ','Kladno','Kladno',50.1473,14.1028,'P','PPL','CZ.88','CZ.88.0203',70003,'Europe/Prague',1,'2017-02-08 23:00:00','2017-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3073743,'CZ','Kbely','Kbely',50.1333,14.55,'P','PPLX','CZ.52','CZ.52.8378789',5457,'Europe/Prague',1,'2013-09-28 23:00:00','2013-09-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3073789,'CZ','Karviná','Karvina',49.854,18.5417,'P','PPL','CZ.85','CZ.85.0803',63677,'Europe/Prague',1,'2012-12-12 23:00:00','2012-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3073803,'CZ','Karlovy Vary','Karlovy Vary',50.2327,12.8712,'P','PPLA','CZ.81','CZ.81.0412',51807,'Europe/Prague',1,'2012-11-20 23:00:00','2012-11-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3073838,'CZ','Karlín','Karlin',50.0927,14.4471,'P','PPLX','CZ.52','CZ.52.8378776',11971,'Europe/Prague',1,'2013-09-28 23:00:00','2013-09-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3073862,'CZ','Kaplice','Kaplice',48.7388,14.4945,'P','PPL','CZ.79','CZ.79.0312',7195,'Europe/Prague',1,'2016-07-17 23:00:00','2016-07-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074020,'CZ','Kadaň','Kadan',50.3833,13.2667,'P','PPL','CZ.89',NULL,18759,'Europe/Prague',1,'2016-03-16 23:00:00','2016-03-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074110,'CZ','Jirkov','Jirkov',50.4998,13.4477,'P','PPL','CZ.89','CZ.89.0422',21056,'Europe/Prague',1,'2017-02-05 23:00:00','2017-02-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074149,'CZ','Jindřichův Hradec','Jindrichuv Hradec',49.144,15.003,'P','PPL','CZ.79','CZ.79.0313',22812,'Europe/Prague',1,'2012-12-04 23:00:00','2012-12-04 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074181,'CZ','Jílové','Jilove',50.7608,14.1038,'P','PPL','CZ.89','CZ.89.0421',5307,'Europe/Prague',1,'2017-02-05 23:00:00','2017-02-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074187,'CZ','Jilemnice','Jilemnice',50.6089,15.5065,'P','PPL','CZ.83','CZ.83.0514',5777,'Europe/Prague',1,'2017-01-29 23:00:00','2017-01-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074199,'CZ','Jihlava','Jihlava',49.3961,15.5912,'P','PPLA','CZ.80','CZ.80.0612',50100,'Europe/Prague',1,'2012-12-09 23:00:00','2012-12-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074204,'CZ','Jičín','Jicin',50.4372,15.3516,'P','PPL','CZ.82','CZ.82.0522',16328,'Europe/Prague',1,'2012-12-09 23:00:00','2012-12-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074281,'CZ','Jeseník','Jesenik',50.2294,17.2046,'P','PPL','CZ.84','CZ.84.0711',12457,'Europe/Prague',1,'2012-12-12 23:00:00','2012-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074462,'CZ','Jaroměř','Jaromer',50.3562,15.9214,'P','PPL','CZ.82','CZ.82.0523',12831,'Europe/Prague',1,'2013-01-10 23:00:00','2013-01-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074593,'CZ','Jablunkov','Jablunkov',49.5767,18.7646,'P','PPL','CZ.85','CZ.85.0802',5782,'Europe/Prague',1,'2013-01-16 23:00:00','2013-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074603,'CZ','Jablonec nad Nisou','Jablonec nad Nisou',50.7243,15.1711,'P','PPL','CZ.83','CZ.83.0512',44878,'Europe/Prague',1,'2014-10-26 23:00:00','2014-10-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074615,'CZ','Ivančice','Ivancice',49.1014,16.3775,'P','PPL','CZ.78','CZ.78.0623',9354,'Europe/Prague',1,'2017-01-17 23:00:00','2017-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074677,'CZ','Hustopeče','Hustopece',48.9408,16.7376,'P','PPL','CZ.78','CZ.78.0624',5913,'Europe/Prague',1,'2013-01-16 23:00:00','2013-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074723,'CZ','Humpolec','Humpolec',49.5415,15.3593,'P','PPL','CZ.80','CZ.80.0613',10914,'Europe/Prague',1,'2012-11-27 23:00:00','2012-11-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074731,'CZ','Hulín','Hulin',49.3169,17.4637,'P','PPL','CZ.90','CZ.90.0721',7571,'Europe/Prague',1,'2017-02-02 23:00:00','2017-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074805,'CZ','Hronov','Hronov',50.4797,16.1823,'P','PPL','CZ.82','CZ.82.0523',6516,'Europe/Prague',1,'2016-09-06 23:00:00','2016-09-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074893,'CZ','Hranice','Hranice',49.548,17.7347,'P','PPL','CZ.84','CZ.84.0714',19582,'Europe/Prague',1,'2012-12-18 23:00:00','2012-12-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074944,'CZ','Hrádek nad Nisou','Hradek nad Nisou',50.8528,14.8446,'P','PPL','CZ.83','CZ.83.0513',7327,'Europe/Prague',1,'2016-09-06 23:00:00','2016-09-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074967,'CZ','Hradec Králové','Hradec Kralove',50.2092,15.8328,'P','PPLA','CZ.82','CZ.82.0521',95195,'Europe/Prague',1,'2014-10-26 23:00:00','2014-10-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3074975,'CZ','Hradec nad Moravici','Hradec nad Moravici',49.8704,17.8784,'P','PPL','CZ.85','CZ.85.0805',5255,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3075119,'CZ','Hořovice','Horovice',49.836,13.9027,'P','PPL','CZ.88','CZ.88.0202',6431,'Europe/Prague',1,'2012-12-17 23:00:00','2012-12-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3075208,'CZ','Horní Slavkov','Horni Slavkov',50.1386,12.8076,'P','PPL','CZ.81','CZ.81.0413',5818,'Europe/Prague',1,'2017-01-25 23:00:00','2017-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3075257,'CZ','Horní Počernice','Horni Pocernice',50.1121,14.6104,'P','PPLX','CZ.52','CZ.52.8378790',14296,'Europe/Prague',1,'2013-09-28 23:00:00','2013-09-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3075493,'CZ','Hořice','Horice',50.3661,15.6318,'P','PPL','CZ.82','CZ.82.0522',8899,'Europe/Prague',1,'2017-01-25 23:00:00','2017-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3075522,'CZ','Horažďovice','Horazd\'ovice',49.3207,13.701,'P','PPL','CZ.87','CZ.87.0322',5727,'Europe/Prague',1,'2017-02-06 23:00:00','2017-02-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3075599,'CZ','Holice','Holice',50.066,15.9859,'P','PPL','CZ.86','CZ.86.0532',6219,'Europe/Prague',1,'2017-02-01 23:00:00','2017-02-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3075606,'CZ','Holešov','Holesov',49.3333,17.5783,'P','PPL','CZ.90','CZ.90.0721',12384,'Europe/Prague',1,'2017-02-02 23:00:00','2017-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3075654,'CZ','Hodonín','Hodonin',48.8489,17.1324,'P','PPL','CZ.78','CZ.78.0625',26345,'Europe/Prague',1,'2017-01-17 23:00:00','2017-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3075716,'CZ','Hlučín','Hlucin',49.8979,18.192,'P','PPL','CZ.85','CZ.85.0805',14228,'Europe/Prague',1,'2013-01-03 23:00:00','2013-01-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3075766,'CZ','Hlinsko','Hlinsko',49.7621,15.9076,'P','PPL','CZ.86','CZ.86.0531',10411,'Europe/Prague',1,'2012-12-13 23:00:00','2012-12-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3075919,'CZ','Havlíčkův Brod','Havlickuv Brod',49.6078,15.5807,'P','PPL','CZ.80','CZ.80.0611',24356,'Europe/Prague',1,'2012-11-26 23:00:00','2012-11-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3075921,'CZ','Havířov','Havirov',49.7798,18.4369,'P','PPL','CZ.85',NULL,82768,'Europe/Prague',1,'2013-08-17 23:00:00','2013-08-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3076076,'CZ','Habartov','Habartov',50.183,12.5505,'P','PPL','CZ.81','CZ.81.0413',5337,'Europe/Prague',1,'2012-12-23 23:00:00','2012-12-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3076116,'CZ','Fulnek','Fulnek',49.7124,17.9032,'P','PPL','CZ.85','CZ.85.0804',6107,'Europe/Prague',1,'2016-09-06 23:00:00','2016-09-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3076123,'CZ','Frýdlant nad Ostravicí','Frydlant nad Ostravici',49.5928,18.3597,'P','PPL','CZ.85','CZ.85.0802',9824,'Europe/Prague',1,'2016-09-06 23:00:00','2016-09-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3076124,'CZ','Frýdlant','Frydlant',50.9214,15.0797,'P','PPL','CZ.83','CZ.83.0513',7471,'Europe/Prague',1,'2012-12-23 23:00:00','2012-12-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3076127,'CZ','Frýdek-Místek','Frydek-Mistek',49.6833,18.35,'P','PPL','CZ.85','CZ.85.0802',59416,'Europe/Prague',1,'2017-12-22 23:00:00','2017-12-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3076132,'CZ','Frenštát pod Radhoštěm','Frenstat pod Radhostem',49.5484,18.2108,'P','PPL','CZ.85','CZ.85.0804',11334,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3076136,'CZ','Františkovy Lázně','Frantiskovy Lazne',50.1203,12.3517,'P','PPL','CZ.81','CZ.81.0411',5355,'Europe/Prague',1,'2012-11-22 23:00:00','2012-11-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3076311,'CZ','Duchcov','Duchcov',50.6038,13.7462,'P','PPL','CZ.89','CZ.89.0426',8937,'Europe/Prague',1,'2017-02-06 23:00:00','2017-02-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3076329,'CZ','Dubňany','Dubnany',48.9169,17.09,'P','PPL','CZ.78','CZ.78.0625',6649,'Europe/Prague',1,'2017-01-17 23:00:00','2017-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3076346,'CZ','Dubí','Dubi',50.6856,13.7856,'P','PPL','CZ.89','CZ.89.0426',7591,'Europe/Prague',1,'2017-02-05 23:00:00','2017-02-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3076587,'CZ','Domažlice','Domazlice',49.4405,12.9298,'P','PPL','CZ.87','CZ.87.0321',10944,'Europe/Prague',1,'2012-11-20 23:00:00','2012-11-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3076972,'CZ','Doksy','Doksy',50.5647,14.6555,'P','PPL','CZ.83','CZ.83.0511',5025,'Europe/Prague',1,'2016-09-06 23:00:00','2016-09-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3076985,'CZ','Dobruška','Dobruska',50.292,16.16,'P','PPL','CZ.82','CZ.82.0524',7085,'Europe/Prague',1,'2016-09-06 23:00:00','2016-09-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077024,'CZ','Dobříš','Dobris',49.7811,14.1672,'P','PPL','CZ.88','CZ.88.020B',7926,'Europe/Prague',1,'2017-02-11 23:00:00','2017-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077073,'CZ','Dobřany','Dobrany',49.6548,13.2931,'P','PPL','CZ.87','CZ.87.0324',5779,'Europe/Prague',1,'2017-02-07 23:00:00','2017-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077244,'CZ','Děčín','Decin',50.7822,14.2148,'P','PPL','CZ.89','CZ.89.0421',52058,'Europe/Prague',1,'2012-11-26 23:00:00','2012-11-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077304,'CZ','Dačice','Dacice',49.0815,15.4373,'P','PPL','CZ.79','CZ.79.0313',7958,'Europe/Prague',1,'2012-11-26 23:00:00','2012-11-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077539,'CZ','Chrudim','Chrudim',49.9511,15.7956,'P','PPL','CZ.86','CZ.86.0531',23630,'Europe/Prague',1,'2013-01-16 23:00:00','2013-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077549,'CZ','Chropyně','Chropyne',49.3564,17.3645,'P','PPL','CZ.90','CZ.90.0721',5172,'Europe/Prague',1,'2017-02-02 23:00:00','2017-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077584,'CZ','Chrastava','Chrastava',50.8169,14.9688,'P','PPL','CZ.83','CZ.83.0513',6051,'Europe/Prague',1,'2017-01-29 23:00:00','2017-01-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077669,'CZ','Chotěboř','Chotebor',49.7207,15.6702,'P','PPL','CZ.80','CZ.80.0611',9849,'Europe/Prague',1,'2017-01-22 23:00:00','2017-01-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077685,'CZ','Chomutov','Chomutov',50.4605,13.4178,'P','PPL','CZ.89','CZ.89.0422',50251,'Europe/Prague',1,'2013-01-03 23:00:00','2013-01-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077706,'CZ','Chodov','Chodov',50.2402,12.7455,'P','PPL','CZ.81','CZ.81.0413',14454,'Europe/Prague',1,'2017-01-25 23:00:00','2017-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077725,'CZ','Choceň','Chocen',50.0016,16.223,'P','PPL','CZ.86','CZ.86.0534',9008,'Europe/Prague',1,'2017-02-01 23:00:00','2017-02-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077751,'CZ','Chlumec nad Cidlinou','Chlumec nad Cidlinou',50.1544,15.4603,'P','PPL','CZ.82','CZ.82.0521',5292,'Europe/Prague',1,'2017-01-25 23:00:00','2017-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077835,'CZ','Cheb','Cheb',50.0796,12.3739,'P','PPL','CZ.81','CZ.81.0411',33242,'Europe/Prague',1,'2012-12-09 23:00:00','2012-12-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077882,'CZ','Český Těšín','Cesky Tesin',49.7461,18.6261,'P','PPL','CZ.85',NULL,25750,'Europe/Prague',1,'2013-08-17 23:00:00','2013-08-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077889,'CZ','Český Krumlov','Cesky Krumlov',48.8109,14.3152,'P','PPL','CZ.79','CZ.79.0312',14146,'Europe/Prague',1,'2014-09-11 23:00:00','2014-09-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077898,'CZ','Český Brod','Cesky Brod',50.0742,14.8608,'P','PPL','CZ.88','CZ.88.0204',6609,'Europe/Prague',1,'2017-02-08 23:00:00','2017-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077916,'CZ','České Budějovice','Ceske Budejovice',48.9745,14.4743,'P','PPLA','CZ.79','CZ.79.0311',96053,'Europe/Prague',1,'2014-08-27 23:00:00','2014-08-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077920,'CZ','Česká Třebová','Ceska Trebova',49.9044,16.4441,'P','PPL','CZ.86','CZ.86.0534',16655,'Europe/Prague',1,'2017-02-06 23:00:00','2017-02-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077921,'CZ','Česká Skalice','Ceska Skalice',50.3947,16.0428,'P','PPL','CZ.82','CZ.82.0523',5402,'Europe/Prague',1,'2013-01-10 23:00:00','2013-01-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077929,'CZ','Česká Lípa','Ceska Lipa',50.6855,14.5376,'P','PPL','CZ.83','CZ.83.0511',38841,'Europe/Prague',1,'2016-07-20 23:00:00','2016-07-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077932,'CZ','Česká Kamenice','Ceska Kamenice',50.7978,14.4177,'P','PPL','CZ.89','CZ.89.0421',5475,'Europe/Prague',1,'2017-02-05 23:00:00','2017-02-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3077955,'CZ','Červený Kostelec','Cerveny Kostelec',50.4763,16.0929,'P','PPL','CZ.82','CZ.82.0523',8441,'Europe/Prague',1,'2013-01-10 23:00:00','2013-01-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3078160,'CZ','Čelákovice','Celakovice',50.1604,14.75,'P','PPL','CZ.88','CZ.88.0209',10125,'Europe/Prague',1,'2017-02-10 23:00:00','2017-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3078234,'CZ','Čáslav','Caslav',49.911,15.3897,'P','PPL','CZ.88','CZ.88.0205',10025,'Europe/Prague',1,'2007-09-30 23:00:00','2007-09-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3078286,'CZ','Bystřice pod Hostýnem','Bystrice pod Hostynem',49.3992,17.674,'P','PPL','CZ.90','CZ.90.0721',8727,'Europe/Prague',1,'2017-02-02 23:00:00','2017-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3078288,'CZ','Bystřice nad Pernštejnem','Bystrice nad Pernstejnem',49.5229,16.2615,'P','PPL','CZ.80','CZ.80.0615',8996,'Europe/Prague',1,'2017-01-24 23:00:00','2017-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3078301,'CZ','Bystřice','Bystrice',49.6366,18.7204,'P','PPL','CZ.85','CZ.85.0802',5076,'Europe/Prague',1,'2016-09-06 23:00:00','2016-09-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3078503,'CZ','Bučovice','Bucovice',49.149,17.0019,'P','PPL','CZ.78','CZ.78.0626',6386,'Europe/Prague',1,'2017-01-17 23:00:00','2017-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3078545,'CZ','Bruntál','Bruntal',49.9884,17.4647,'P','PPL','CZ.85','CZ.85.0801',17686,'Europe/Prague',1,'2012-12-18 23:00:00','2012-12-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3078577,'CZ','Broumov','Broumov',50.5857,16.3318,'P','PPL','CZ.82','CZ.82.0523',8254,'Europe/Prague',1,'2017-01-26 23:00:00','2017-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3078610,'CZ','Brno','Brno',49.1952,16.608,'P','PPLA','CZ.78','CZ.78.0622',369559,'Europe/Prague',1,'2012-11-21 23:00:00','2012-11-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3078773,'CZ','Břeclav','Breclav',48.759,16.882,'P','PPL','CZ.78','CZ.78.0624',25789,'Europe/Prague',1,'2012-12-12 23:00:00','2012-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3078833,'CZ','Braník','Branik',50.035,14.4152,'P','PPLX','CZ.52',NULL,18740,'Europe/Prague',1,'2017-02-11 23:00:00','2017-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3078837,'CZ','Brandýs nad Labem-Stará Boleslav','Brandys nad Labem-Stara Boleslav',50.1871,14.6633,'P','PPL','CZ.88','CZ.88.0209',15398,'Europe/Prague',1,'2017-02-10 23:00:00','2017-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3078910,'CZ','Boskovice','Boskovice',49.4875,16.66,'P','PPL','CZ.78','CZ.78.0621',11121,'Europe/Prague',1,'2012-12-12 23:00:00','2012-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3079129,'CZ','Bohumín','Bohumin',49.9041,18.3575,'P','PPL','CZ.85','CZ.85.0803',23075,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3079252,'CZ','Blatná','Blatna',49.4249,13.8818,'P','PPL','CZ.79','CZ.79.0316',6735,'Europe/Prague',1,'2013-01-10 23:00:00','2013-01-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3079273,'CZ','Blansko','Blansko',49.363,16.6445,'P','PPL','CZ.78','CZ.78.0621',20384,'Europe/Prague',1,'2012-11-15 23:00:00','2012-11-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3079336,'CZ','Bílovec','Bilovec',49.7564,18.0158,'P','PPL','CZ.85','CZ.85.0804',7486,'Europe/Prague',1,'2017-01-31 23:00:00','2017-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3079346,'CZ','Bílina Kyselka','Bilina Kyselka',50.55,13.7667,'P','PPL','CZ.89','CZ.89.0426',15697,'Europe/Prague',1,'2017-02-05 23:00:00','2017-02-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3079348,'CZ','Bílina','Bilina',50.5485,13.7753,'P','PPL','CZ.89','CZ.89.0426',15738,'Europe/Prague',1,'2017-02-05 23:00:00','2017-02-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3079467,'CZ','Beroun','Beroun',49.9638,14.072,'P','PPL','CZ.88','CZ.88.0202',17550,'Europe/Prague',1,'2012-11-22 23:00:00','2012-11-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3079508,'CZ','Benešov','Benesov',49.7816,14.687,'P','PPL','CZ.88','CZ.88.0201',16257,'Europe/Prague',1,'2012-12-17 23:00:00','2012-12-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3079514,'CZ','Benátky nad Jizerou','Benatky nad Jizerou',50.2909,14.8234,'P','PPL','CZ.88','CZ.88.0207',6818,'Europe/Prague',1,'2017-02-09 23:00:00','2017-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3079616,'CZ','Bechyně','Bechyne',49.2952,14.4681,'P','PPL','CZ.79','CZ.79.0317',5755,'Europe/Prague',1,'2013-01-02 23:00:00','2013-01-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (3079751,'CZ','Aš','As',50.2239,12.195,'P','PPL','CZ.81','CZ.81.0411',12866,'Europe/Prague',1,'2017-01-24 23:00:00','2017-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6269470,'CZ','Černý Most','Cerny Most',50.1048,14.5797,'P','PPLX','CZ.52',NULL,21500,'Europe/Prague',1,'2007-04-23 23:00:00','2007-04-23 23:00:00');
/*!40000 ALTER TABLE `<<prefix>>cities` ENABLE KEYS */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed
|
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Jun 29, 2019 at 05:19 PM
-- Server version: 5.7.19
-- PHP Version: 5.6.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `ci_test`
--
-- --------------------------------------------------------
--
-- Table structure for table `articles`
--
DROP TABLE IF EXISTS `articles`;
CREATE TABLE IF NOT EXISTS `articles` (
`id` int(100) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`body` text NOT NULL,
`user_id` int(100) NOT NULL,
`created_at` timestamp NOT NULL,
`image_path` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `articles`
--
INSERT INTO `articles` (`id`, `title`, `body`, `user_id`, `created_at`, `image_path`) VALUES
(47, 'lkhllk', ';ljp;jol', 1, '2019-06-06 06:43:43', 'back1.jpg'),
(46, 's', 's', 4, '2019-06-06 05:52:44', ''),
(48, 'Design O Web', 'Design O Web', 5, '2019-06-07 02:50:02', 'form.jpg'),
(49, 'song file', 'song file', 1, '2019-06-07 02:52:55', 'Acha chalta hu re kabira song by vridhi saini.mp3');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`id` int(100) NOT NULL AUTO_INCREMENT,
`uname` varchar(100) NOT NULL,
`pword` text NOT NULL,
`fname` varchar(100) NOT NULL,
`lname` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `uname`, `pword`, `fname`, `lname`) VALUES
(1, 'shoryagoel', '123design123', 'shorya', 'goel'),
(2, 'suraj', 'suraj', 'kalra', 'suraj'),
(3, 'shivangi', 'shivangi', 'sharma', 'shivangi'),
(4, 's', 's', 's', 's'),
(5, 'Gauri', 'gauri', 'Jakhmola', 'Gauri');
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- Clear out old entries first
DELETE FROM postgres.{{schema_name | sqlsafe}}.reporting_ocpgcp_cost_summary_by_region_p
WHERE usage_start >= date('{{start_date | sqlsafe}}')
AND usage_start <= date('{{end_date | sqlsafe}}')
AND invoice_month = '{{year | sqlsafe}}{{month | sqlsafe}}'
AND cluster_id = '{{cluster_id | sqlsafe}}'
AND source_uuid = cast('{{source_uuid | sqlsafe}}' AS UUID)
;
-- Populate the daily aggregate line item data
INSERT INTO postgres.{{schema_name | sqlsafe}}.reporting_ocpgcp_cost_summary_by_region_p (
id,
cluster_id,
cluster_alias,
usage_start,
usage_end,
account_id,
region,
unblended_cost,
markup_cost,
currency,
source_uuid,
credit_amount,
invoice_month
)
SELECT uuid(),
cluster_id,
cluster_alias,
usage_start,
usage_end,
account_id,
region,
sum(unblended_cost) as unblended_cost,
sum(markup_cost) as markup_cost,
max(currency) as currency,
source_uuid,
sum(credit_amount) as credit_amount,
invoice_month
FROM postgres.{{schema_name | sqlsafe}}.reporting_ocpgcpcostlineitem_daily_summary_p
WHERE usage_start >= date('{{start_date | sqlsafe}}')
AND usage_start <= date('{{end_date | sqlsafe}}')
AND invoice_month = '{{year | sqlsafe}}{{month | sqlsafe}}'
AND cluster_id = '{{cluster_id | sqlsafe}}'
AND source_uuid = cast('{{source_uuid | sqlsafe}}' AS UUID)
GROUP BY cluster_id,
cluster_alias,
usage_start,
usage_end,
account_id,
region,
source_uuid,
invoice_month
;
|
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`lname` varchar(100) CHARACTER SET latin1 NOT NULL,
`gname` varchar(100) CHARACTER SET latin1 NOT NULL,
`location` varchar(200) NOT NULL,
`wife` int(2) NOT NULL,
`children` int(2) NOT NULL,
`payrate` int(50) NOT NULL,
`username` varchar(50) CHARACTER SET latin1 NOT NULL,
`password` varchar(200) CHARACTER SET latin1 NOT NULL,
`attempt` int(3) NOT NULL,
`lockout` int(11) NOT NULL,
`email` varchar(100) CHARACTER SET latin1 NOT NULL,
`phone` char(11) CHARACTER SET latin1 NOT NULL,
`profile_pic` varchar(100) CHARACTER SET latin1 NOT NULL,
`description` varchar(50) CHARACTER SET latin1 NOT NULL,
`gender` varchar(10) CHARACTER SET latin1 NOT NULL,
`pw` varchar(200) NOT NULL,
`status` int(4) NOT NULL,
`in_or_out` int(4) NOT NULL DEFAULT '0',
`punchin` datetime NOT NULL,
`status_today` varchar(100) NOT NULL,
`request_vacation` date NOT NULL,
`request_vacation1` date NOT NULL,
`request_vacation2` date NOT NULL,
`sick_day_available` int(10) NOT NULL,
`sick_day_used` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ;
CREATE TABLE IF NOT EXISTS `timecard` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`employment_id` int(11) NOT NULL,
`full_name` varchar(100) NOT NULL,
`location` varchar(200) NOT NULL,
`rank_rate` int(11) NOT NULL,
`clockin` datetime NOT NULL,
`clockout` datetime NOT NULL,
`total` time NOT NULL,
`overtime` time NOT NULL,
`payroll` int(20) NOT NULL,
`actual_time_in` datetime NOT NULL,
`actual_time_out` datetime NOT NULL,
`actual_total` time NOT NULL,
`comment` text NOT NULL,
`process_by` varchar(200) NOT NULL,
`recon` varchar(100) NOT NULL,
`dept` varchar(250) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ;
|
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 06-Set-2020 às 03:48
-- Versão do servidor: 10.4.13-MariaDB
-- versão do PHP: 7.4.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Banco de dados: `web-db_loja-acert-cmp`
--
-- --------------------------------------------------------
--
-- Estrutura da tabela `tbl_category`
--
CREATE TABLE `tbl_category` (
`id_category` int(11) NOT NULL,
`name_category` varchar(30) NOT NULL,
`description_category` varchar(120) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Extraindo dados da tabela `tbl_category`
--
INSERT INTO `tbl_category` (`id_category`, `name_category`, `description_category`) VALUES
(1, 'Marketing Digital', 'Categoria dedica a ganho comercial pela internet.'),
(2, 'BackEnd', 'Profissional designado a resolver problemas de sites.'),
(3, 'Comércio Gamer', 'Comércio dedicado ao público Gamer.'),
(4, 'Informática', 'Categoria dedica ao acessórios técnico sobre informática.'),
(5, 'Framework', 'Categoria dedica a informar sobre as melhores Frameworks do mercado.');
-- --------------------------------------------------------
--
-- Estrutura da tabela `tbl_client`
--
CREATE TABLE `tbl_client` (
`id_client` int(11) NOT NULL,
`name_client` varchar(30) NOT NULL,
`surname_client` varchar(30) NOT NULL,
`phone_client` varchar(8) NOT NULL,
`smartphone_client` varchar(9) NOT NULL,
`cpf_client` varchar(11) NOT NULL,
`email_client` varchar(254) NOT NULL,
`street_client` varchar(50) NOT NULL,
`number_client` varchar(5) NOT NULL,
`neighborhood_client` varchar(50) NOT NULL,
`city_client` varchar(50) NOT NULL,
`state_client` varchar(50) NOT NULL,
`cep_client` varchar(8) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Extraindo dados da tabela `tbl_client`
--
INSERT INTO `tbl_client` (`id_client`, `name_client`, `surname_client`, `phone_client`, `smartphone_client`, `cpf_client`, `email_client`, `street_client`, `number_client`, `neighborhood_client`, `city_client`, `state_client`, `cep_client`) VALUES
(1, 'Falcon', 'Zeus', '35253423', '981887899', '06188830959', 'eee@developer.com', 'Rua Y de Augustino', '45', 'Seu zé Doze', 'Bonito', 'Bonito', '95600140'),
(2, 'Ana', 'Souza', '35093422', '981092345', '09123242456', 'ana@gema.com', 'Rua Simples Souza', '37', 'Fica limpo', 'Limposa', 'Limeira', '95400300'),
(3, 'Luisa', 'Albertania', '35213126', '981187623', '01288830959', 'Albertania@fk.com', 'Rua Ficaniana', '56', 'Acerolana', 'Petrolelis', 'Amapará', '95100442'),
(4, 'Carlos', 'Paunelano', '31313122', '991181624', '09258820951', 'Paunelano@go.com', 'Rua dos finalistas', '121', 'Finalista de Ribeirao', 'Ribeirao', 'Rio grande', '92500020'),
(5, 'Victavo', 'Ficavi', '32911512', '981818162', '05158810953', 'Ficavi@fk.com', 'Rua de quem fica com alguém', '77', 'Casamenteiro', 'Casande', 'Casarao', '96100120'),
(6, 'Fakeano', 'Silva', '37675725', '981383726', '05259970154', 'SilvaFK@dg.com', 'Rua Fika', '222', 'Fika Longe', 'Ficandino', 'Dino', '93501130'),
(7, 'Joke', 'Bravo', '37774774', '977783777', '07128970177', 'Bravo777@ggizi.com', 'Volta 7', '77', 'Prod7', 'Prodecemente', 'Proceder', '77700117');
-- --------------------------------------------------------
--
-- Estrutura da tabela `tbl_items_sale`
--
CREATE TABLE `tbl_items_sale` (
`id_items_sale` int(11) NOT NULL,
`id_sale` int(10) NOT NULL,
`id_product` int(10) NOT NULL,
`quantity_product` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Estrutura da tabela `tbl_product`
--
CREATE TABLE `tbl_product` (
`id_product` int(11) NOT NULL,
`id_category` int(10) NOT NULL,
`name_product` varchar(30) NOT NULL,
`description_product` varchar(120) NOT NULL,
`value_product` float NOT NULL,
`stock_product` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Extraindo dados da tabela `tbl_product`
--
INSERT INTO `tbl_product` (`id_product`, `id_category`, `name_product`, `description_product`, `value_product`, `stock_product`) VALUES
(1, 1, 'Comércio Digital - JoãoDDR4', 'Serviço digital', 600, 100),
(2, 4, 'Mouse PRO BAX', 'Mouse de lta performance', 500, 100),
(3, 4, 'SSD AXIOS PRO', 'SSD de alta performance ', 500, 100),
(4, 2, 'Curso de PHP - JoãoDDR4', 'Curso focado em profissionalizar os programadores Back End.', 400, 100),
(5, 5, 'Curso de ReactJS - JoãoDDR4', 'Curso dedicado a formar pessoas especilizadas em React.', 500, 100),
(6, 1, 'Curso de Marketing - JoãoDDR4', 'Curso focado em marketing empresarial', 700, 100),
(7, 3, 'Cadeira Gamer', 'Cadeira extramamente confortável para pessoas que queiram jogar seus jogos por horas seguidas', 1200, 100);
-- --------------------------------------------------------
--
-- Estrutura da tabela `tbl_sale`
--
CREATE TABLE `tbl_sale` (
`id_sale` int(11) NOT NULL,
`id_client` int(11) NOT NULL,
`date_sale` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Índices para tabelas despejadas
--
--
-- Índices para tabela `tbl_category`
--
ALTER TABLE `tbl_category`
ADD PRIMARY KEY (`id_category`);
--
-- Índices para tabela `tbl_client`
--
ALTER TABLE `tbl_client`
ADD PRIMARY KEY (`id_client`);
--
-- Índices para tabela `tbl_items_sale`
--
ALTER TABLE `tbl_items_sale`
ADD PRIMARY KEY (`id_items_sale`),
ADD KEY `id_sale` (`id_sale`),
ADD KEY `id_product` (`id_product`);
--
-- Índices para tabela `tbl_product`
--
ALTER TABLE `tbl_product`
ADD PRIMARY KEY (`id_product`),
ADD KEY `id_category` (`id_category`);
--
-- Índices para tabela `tbl_sale`
--
ALTER TABLE `tbl_sale`
ADD PRIMARY KEY (`id_sale`),
ADD KEY `id_client` (`id_client`);
--
-- AUTO_INCREMENT de tabelas despejadas
--
--
-- AUTO_INCREMENT de tabela `tbl_category`
--
ALTER TABLE `tbl_category`
MODIFY `id_category` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT de tabela `tbl_client`
--
ALTER TABLE `tbl_client`
MODIFY `id_client` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT de tabela `tbl_items_sale`
--
ALTER TABLE `tbl_items_sale`
MODIFY `id_items_sale` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de tabela `tbl_product`
--
ALTER TABLE `tbl_product`
MODIFY `id_product` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT de tabela `tbl_sale`
--
ALTER TABLE `tbl_sale`
MODIFY `id_sale` int(11) NOT NULL AUTO_INCREMENT;
--
-- Restrições para despejos de tabelas
--
--
-- Limitadores para a tabela `tbl_items_sale`
--
ALTER TABLE `tbl_items_sale`
ADD CONSTRAINT `tbl_items_sale_ibfk_1` FOREIGN KEY (`id_sale`) REFERENCES `tbl_sale` (`id_sale`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `tbl_items_sale_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `tbl_product` (`id_product`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Limitadores para a tabela `tbl_product`
--
ALTER TABLE `tbl_product`
ADD CONSTRAINT `tbl_product_ibfk_1` FOREIGN KEY (`id_category`) REFERENCES `tbl_category` (`id_category`) ON DELETE NO ACTION ON UPDATE NO ACTION;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- file:boolean.sql ln:184 expect:true
SELECT '' AS "Not True", f1
FROM BOOLTBL1
WHERE f1 IS NOT TRUE
|
/* -----------------------------------------------------------------------------
Delete all data from the PIMS_STATIC_VARIABLE table and repopulate.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Author Date Comment
------------ ----------- -----------------------------------------------------
Doug Filteau 2021-Aug-24 Initial version
----------------------------------------------------------------------------- */
DELETE FROM PIMS_STATIC_VARIABLE
GO
INSERT INTO PIMS_STATIC_VARIABLE (STATIC_VARIABLE_NAME, STATIC_VARIABLE_VALUE)
VALUES
(N'DBVERSION', N'16.00'),
(N'GST', N'5.0'),
(N'FYSTART', N'01/04/2020'),
(N'FYEND', N'31/03/2021');
|
SELECT "MLB_48"."teamname" AS "teamname" FROM "MLB_48" GROUP BY 1 ORDER BY "teamname" ASC;
|
-- SPDX-License-Identifier: Apache-2.0
-- Copyright Contributors to the ODPi Egeria project.
disconnect all$
create database CDD$
connect to CDD$
drop table ContactPhone$
CREATE TABLE ContactPhone (
RecId INT NOT NULL,
ContactType CHAR NOT NULL,
Number VARCHAR(40) NOT NULL
) $
import from '../CompanyDirectoryDatabase-ContactPhone.csv' of DEL modified by coldel; skipcount 1 insert into ContactPhone$
terminate$
|
CREATE View [reference].[RepoObjectColumn_ReferencedReferencing]
As
--Select
-- Object2.RepoObject_fullname As Referenced_fullname
-- , Object2.RepoObject_fullname2 As Referenced_fullname2
-- , Object2.RepoObject_guid As Referenced_RepoObject_guid
-- , Object2.RepoObject_type As Referenced_type
-- , Object2.RepoObjectColumn_fullname As ReferencedColumn_fullname
-- , Object2.RepoObjectColumn_fullname2 As ReferencedColumn_fullname2
-- , Object2.RepoObjectColumn_name As ReferencedColumn_name
-- , Object2.RepoObjectColumn_type As ReferencedColumn_type
-- , Object2.RepoObjectColumn_guid As Referenced_guid
-- , Object1.RepoObject_fullname As Referencing_fullname
-- , Object1.RepoObject_fullname2 As Referencing_fullname2
-- , Object1.RepoObject_guid As Referencing_RepoObject_guid
-- , Object1.RepoObject_type As Referencing_type
-- , Object1.RepoObjectColumn_fullname As ReferencingColumn_fullname
-- , Object1.RepoObjectColumn_fullname2 As ReferencingColumn_fullname2
-- , Object1.RepoObjectColumn_name As ReferencingColumn_name
-- , Object1.RepoObjectColumn_type As ReferencingColumn_type
-- , Object1.RepoObjectColumn_guid As Referencing_guid
--From
-- graph.RepoObjectColumn As Object1
-- , graph.ReferencedObjectColumn As referenced
-- , graph.RepoObjectColumn As Object2
--Where Match(
-- Object1-(referenced)->Object2);
Select
Referenced_fullname = referenced_ro_fullname
, Referenced_fullname2 = referenced_ro_fullname2
, Referenced_RepoObject_guid = referenced_RepoObject_guid
, Referenced_type = referenced_type
, ReferencedColumn_fullname = referenced_roc_fullname
, ReferencedColumn_fullname2 = referenced_roc_fullname2
, ReferencedColumn_name = referenced_column_name
--, Object2.RepoObjectColumn_type As ReferencedColumn_type
, Referenced_guid = referenced_RepoObjectColumn_guid
, referenced_external_AntoraComponent
, referenced_external_AntoraModule
, referenced_is_external
, referenced_AntoraXref = Concat (
--* xref:target-page-filename.adoc[link text]
--we need to convert to first argument nvarchar(max) to avoid the limit of 8000 byte
Cast('* xref:' As NVarchar(Max))
, referenced_external_AntoraComponent + ':'
, referenced_external_AntoraModule + ':'
, docs.fs_cleanStringForFilename ( referenced_ro_fullname2 )
, '.adoc#column-' + docs.fs_cleanStringForAnchorId ( referenced_column_name )
+ '[+' + referenced_roc_fullname2 + '+]'
, ' in xref:' + referenced_external_AntoraComponent + ':'
+ referenced_external_AntoraModule + ':' + 'nav/objects-by-schema.adoc[]'
)
, Referencing_fullname = referencing_ro_fullname
, Referencing_fullname2 = referencing_ro_fullname2
, Referencing_RepoObject_guid = referencing_RepoObject_guid
, Referencing_type = referencing_type
, ReferencingColumn_fullname = referencing_roc_fullname
, ReferencingColumn_fullname2 = referencing_roc_fullname2
, ReferencingColumn_name = referencing_column_name
--, Object1.RepoObjectColumn_type As ReferencingColumn_type
, Referencing_guid = referencing_RepoObjectColumn_guid
, referencing_external_AntoraComponent
, referencing_external_AntoraModule
, referencing_is_external
, referencing_AntoraXref = Concat (
--* xref:target-page-filename.adoc[link text]
--we need to convert to first argument nvarchar(max) to avoid the limit of 8000 byte
Cast('* xref:' As NVarchar(Max))
, referencing_external_AntoraComponent + ':'
, referencing_external_AntoraModule + ':'
, docs.fs_cleanStringForFilename ( referencing_ro_fullname2 )
, '.adoc#column-' + docs.fs_cleanStringForAnchorId ( referencing_column_name )
+ '[+' + referencing_roc_fullname2 + '+]'
, ' in xref:' + referencing_external_AntoraComponent + ':'
+ referencing_external_AntoraModule + ':' + 'nav/objects-by-schema.adoc[]'
)
From
reference.RepoObjectColumn_reference_T
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '5af74f6d-791d-ec11-8522-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'referencing_AntoraXref';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '59f74f6d-791d-ec11-8522-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'referencing_is_external';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '58f74f6d-791d-ec11-8522-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'referencing_external_AntoraModule';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '57f74f6d-791d-ec11-8522-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'referencing_external_AntoraComponent';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '4d4679b8-147c-eb11-84e6-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referencing_guid';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referencing_RepoObjectColumn_guid]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referencing_guid';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'b935b4cd-e093-eb11-84f2-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'ReferencingColumn_name';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referencing_column_name]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'ReferencingColumn_name';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '5e1254dc-0593-eb11-84f2-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'ReferencingColumn_fullname2';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referencing_roc_fullname2]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'ReferencingColumn_fullname2';
GO
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '4b4679b8-147c-eb11-84e6-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'ReferencingColumn_fullname';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referencing_roc_fullname]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'ReferencingColumn_fullname';
GO
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '4a4679b8-147c-eb11-84e6-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referencing_type';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referencing_type]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referencing_type';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '494679b8-147c-eb11-84e6-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referencing_RepoObject_guid';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referencing_RepoObject_guid]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referencing_RepoObject_guid';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '5d1254dc-0593-eb11-84f2-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referencing_fullname2';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referencing_ro_fullname2]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referencing_fullname2';
GO
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '484679b8-147c-eb11-84e6-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referencing_fullname';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referencing_ro_fullname]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referencing_fullname';
GO
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '56f74f6d-791d-ec11-8522-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'referenced_AntoraXref';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '55f74f6d-791d-ec11-8522-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'referenced_is_external';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '54f74f6d-791d-ec11-8522-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'referenced_external_AntoraModule';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '53f74f6d-791d-ec11-8522-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'referenced_external_AntoraComponent';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '474679b8-147c-eb11-84e6-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referenced_guid';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referenced_RepoObjectColumn_guid]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referenced_guid';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'b835b4cd-e093-eb11-84f2-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'ReferencedColumn_name';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referenced_column_name]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'ReferencedColumn_name';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '5c1254dc-0593-eb11-84f2-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'ReferencedColumn_fullname2';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referenced_roc_fullname2]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'ReferencedColumn_fullname2';
GO
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '454679b8-147c-eb11-84e6-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'ReferencedColumn_fullname';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referenced_roc_fullname]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'ReferencedColumn_fullname';
GO
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '444679b8-147c-eb11-84e6-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referenced_type';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referenced_type]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referenced_type';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '434679b8-147c-eb11-84e6-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referenced_RepoObject_guid';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referenced_RepoObject_guid]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referenced_RepoObject_guid';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '5b1254dc-0593-eb11-84f2-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referenced_fullname2';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referenced_ro_fullname2]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referenced_fullname2';
GO
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '424679b8-147c-eb11-84e6-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referenced_fullname';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [reference].[RepoObjectColumn_reference_T].[referenced_ro_fullname]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing', @level2type = N'COLUMN', @level2name = N'Referenced_fullname';
GO
GO
EXECUTE sp_addextendedproperty @name = N'RepoObject_guid', @value = N'3e4679b8-147c-eb11-84e6-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectList', @value = N'* [reference].[RepoObjectColumn_reference_T]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing';
GO
GO
GO
GO
EXECUTE sp_addextendedproperty @name = N'is_ssas', @value = N'0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing';
GO
EXECUTE sp_addextendedproperty @name = N'is_repo_managed', @value = N'0', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing';
GO
EXECUTE sp_addextendedproperty @name = N'AntoraReferencingList', @value = N'* xref:reference.ftv_RepoObject_DbmlColumnRelation.adoc[]
* xref:reference.ftv_RepoObjectColumn_ReferenceTree.adoc[]
* xref:reference.RepoObjectColumn_ReferencedList.adoc[]
* xref:reference.RepoObjectColumn_ReferencingList.adoc[]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing';
GO
EXECUTE sp_addextendedproperty @name = N'AntoraReferencedList', @value = N'* xref:reference.RepoObjectColumn_reference_T.adoc[]', @level0type = N'SCHEMA', @level0name = N'reference', @level1type = N'VIEW', @level1name = N'RepoObjectColumn_ReferencedReferencing';
|
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 10, 2019 at 05:26 PM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `alumni_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `surveys`
--
CREATE TABLE `surveys` (
`survey_id` int(10) UNSIGNED NOT NULL COMMENT 'id',
`user_id` int(10) UNSIGNED NOT NULL COMMENT 'người lập',
`survey_name` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'tên mẫu khảo sát',
`survey_description` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'mô tả khảo sát',
`survey_start` datetime NOT NULL COMMENT 'ngày bắt đầu',
`survey_end` datetime NOT NULL COMMENT 'ngày kết thúc',
`survey_version` int(10) UNSIGNED NOT NULL COMMENT 'phiên bảng khảo sát',
`created_at` timestamp NOT NULL DEFAULT current_timestamp() COMMENT 'ngày tạo',
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT 'ngày cập nhật',
`deleted_at` timestamp NULL DEFAULT NULL COMMENT 'ngày xóa tạm'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Mẫu khảo sát';
--
-- Dumping data for table `surveys`
--
INSERT INTO `surveys` (`survey_id`, `user_id`, `survey_name`, `survey_description`, `survey_start`, `survey_end`, `survey_version`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, 'BÁO CÁO TÌNH HÌNH VIỆC LÀM CỦA SINH VIÊN TỐT NGHIỆP 2019', 'BÁO CÁO TÌNH HÌNH VIỆC LÀM CỦA SINH VIÊN TỐT NGHIỆP NĂM 2019', '2019-10-01 00:00:00', '2019-11-02 00:00:00', 1, '2019-10-08 14:26:29', '2019-10-10 15:24:14', NULL);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `surveys`
--
ALTER TABLE `surveys`
ADD PRIMARY KEY (`survey_id`),
ADD KEY `surveys_user_id_index` (`user_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `surveys`
--
ALTER TABLE `surveys`
MODIFY `survey_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id', AUTO_INCREMENT=7;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
DELETE FROM waffle_switch WHERE name IN (
'allow-refund', 'paypal-disable', 'browserid-login', 'collection-stats',
'video-encode', 'theme-stats'
);
|
if exists (select * from dbo.sysobjects where id = object_id(N'[MenuObject_Set]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [MenuObject_Set]
GO
|
CREATE DATABASE MiniORM
GO
USE MiniORM
GO
CREATE TABLE Projects
(
Id INT IDENTITY PRIMARY KEY,
Name VARCHAR(50) NOT NULL
)
CREATE TABLE Departments
(
Id INT IDENTITY PRIMARY KEY,
Name VARCHAR(50) NOT NULL
)
CREATE TABLE Employees
(
Id INT IDENTITY PRIMARY KEY,
FirstName VARCHAR(50) NOT NULL,
MiddleName VARCHAR(50),
LastName VARCHAR(50) NOT NULL,
IsEmployed BIT NOT NULL,
DepartmentId INT
CONSTRAINT FK_Employees_Departments FOREIGN KEY
REFERENCES Departments(Id)
)
CREATE TABLE EmployeesProjects
(
ProjectId INT NOT NULL
CONSTRAINT FK_Employees_Projects REFERENCES Projects(Id),
EmployeeId INT NOT NULL
CONSTRAINT FK_Employees_Employee REFERENCES Employees(Id),
CONSTRAINT PK_Projects_Employees
PRIMARY KEY (ProjectId, EmployeeId)
)
SELECT * FROM Employees
SELECT * FROM Departments
|
-- 2018-10-23T16:03:24.058
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET MandatoryLogic='@AD_Element_ID/0@>0',Updated=TO_TIMESTAMP('2018-10-23 16:03:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=116
;
-- 2018-10-23T16:03:44.579
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET MandatoryLogic='@AD_Element_ID/0@>0',Updated=TO_TIMESTAMP('2018-10-23 16:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=111
;
|
Copyright (C) 1998 James G. MacKinnon, Alfred A. Haug, and Leo Michelis.
lm0-07-2 3 1
20.2430 0.040814
20.8188 0.032740
21.6965 0.022018
22.4450 0.016911
23.2367 0.013174
23.7378 0.011992
24.1063 0.011234
24.4092 0.010313
24.6616 0.009878
24.8765 0.009114
25.0696 0.008961
25.2403 0.008379
25.4044 0.007868
26.0600 0.007039
26.5635 0.006581
26.9788 0.005861
27.3356 0.005584
27.6475 0.005413
27.9287 0.005228
28.1836 0.005062
28.4164 0.005036
28.6368 0.005139
28.8407 0.005039
29.0370 0.005012
29.2224 0.004929
29.3993 0.004844
29.5680 0.004769
29.7286 0.004666
29.8842 0.004578
30.0351 0.004512
30.1815 0.004403
30.3233 0.004400
30.4587 0.004355
30.5928 0.004256
30.7213 0.004223
30.8474 0.004203
30.9709 0.004195
31.0914 0.004126
31.2103 0.004082
31.3274 0.004014
31.4418 0.004010
31.5551 0.003988
31.6631 0.004006
31.7705 0.003963
31.8770 0.003931
31.9821 0.003891
32.0862 0.003918
32.1887 0.003820
32.2882 0.003806
32.3877 0.003784
32.4852 0.003776
32.5816 0.003789
32.6763 0.003776
32.7711 0.003791
32.8648 0.003782
32.9577 0.003776
33.0486 0.003776
33.1396 0.003778
33.2293 0.003788
33.3190 0.003833
33.4077 0.003805
33.4964 0.003836
33.5847 0.003844
33.6729 0.003857
33.7577 0.003858
33.8442 0.003878
33.9299 0.003915
34.0142 0.003917
34.0986 0.003887
34.1827 0.003895
34.2668 0.003900
34.3497 0.003898
34.4326 0.003852
34.5147 0.003866
34.5967 0.003831
34.6792 0.003827
34.7601 0.003844
34.8408 0.003801
34.9205 0.003864
35.0017 0.003896
35.0825 0.003935
35.1622 0.003940
35.2415 0.003994
35.3210 0.003981
35.4005 0.003969
35.4796 0.004039
35.5590 0.004056
35.6369 0.004038
35.7159 0.004009
35.7947 0.004008
35.8730 0.004026
35.9525 0.004017
36.0312 0.004016
36.1091 0.003987
36.1888 0.003994
36.2680 0.003977
36.3458 0.003939
36.4249 0.003954
36.5042 0.003948
36.5826 0.003935
36.6609 0.003921
36.7394 0.003951
36.8187 0.003973
36.8977 0.004006
36.9771 0.003991
37.0562 0.003974
37.1363 0.003999
37.2155 0.004047
37.2945 0.004052
37.3743 0.004029
37.4551 0.004080
37.5349 0.004069
37.6155 0.004053
37.6964 0.004103
37.7773 0.004171
37.8599 0.004189
37.9411 0.004206
38.0226 0.004206
38.1044 0.004221
38.1869 0.004275
38.2699 0.004372
38.3528 0.004360
38.4357 0.004360
38.5196 0.004405
38.6022 0.004431
38.6870 0.004423
38.7723 0.004458
38.8568 0.004484
38.9415 0.004457
39.0269 0.004493
39.1131 0.004489
39.1990 0.004513
39.2868 0.004542
39.3734 0.004521
39.4611 0.004560
39.5510 0.004595
39.6410 0.004590
39.7310 0.004622
39.8217 0.004678
39.9136 0.004715
40.0067 0.004752
40.0992 0.004731
40.1938 0.004760
40.2875 0.004750
40.3823 0.004810
40.4793 0.004832
40.5764 0.004813
40.6736 0.004851
40.7717 0.004856
40.8708 0.004812
40.9709 0.004848
41.0732 0.004894
41.1757 0.004882
41.2801 0.004893
41.3850 0.004931
41.4923 0.004956
41.6013 0.004922
41.7113 0.004916
41.8219 0.004945
41.9343 0.004924
42.0465 0.004988
42.1618 0.005011
42.2781 0.005029
42.3959 0.005014
42.5141 0.005099
42.6328 0.005166
42.7570 0.005247
42.8816 0.005329
43.0080 0.005316
43.1376 0.005320
43.2697 0.005319
43.4034 0.005387
43.5381 0.005569
43.6764 0.005677
43.8211 0.005778
43.9671 0.005780
44.1157 0.005796
44.2686 0.005889
44.4241 0.006044
44.5823 0.006072
44.7460 0.006259
44.9137 0.006425
45.0873 0.006510
45.2656 0.006655
45.4496 0.006686
45.6382 0.006798
45.8343 0.006913
46.0392 0.007123
46.2511 0.007228
46.4695 0.007391
46.6959 0.007598
46.9323 0.007655
47.1832 0.007806
47.4443 0.007957
47.7185 0.008150
48.0055 0.008421
48.3064 0.008739
48.6276 0.008911
48.9732 0.009193
49.3516 0.009736
49.7502 0.010231
50.1863 0.010636
50.6716 0.010988
51.2083 0.011671
51.8220 0.012557
52.5351 0.013222
53.4091 0.014767
54.5005 0.016908
56.0119 0.019191
56.3948 0.019957
56.8245 0.020934
57.3125 0.022280
57.8638 0.023941
58.5175 0.025872
59.3042 0.029194
60.3108 0.033556
61.6541 0.041240
63.9404 0.055351
66.1390 0.076787
69.0442 0.115062
71.2324 0.156102
lm1-07-2 3 1
22.6199 0.047005
23.2253 0.036147
24.1283 0.024804
24.8848 0.019202
25.6931 0.014656
26.2131 0.012002
26.6064 0.010967
26.9281 0.010049
27.1989 0.009272
27.4357 0.008949
27.6391 0.008442
27.8221 0.007912
27.9904 0.007690
28.6748 0.006951
29.1982 0.006181
29.6231 0.006246
29.9915 0.005945
30.3179 0.005645
30.6086 0.005634
30.8753 0.005398
31.1213 0.005299
31.3500 0.005169
31.5637 0.005052
31.7643 0.004941
31.9563 0.004760
32.1412 0.004747
32.3156 0.004716
32.4824 0.004657
32.6431 0.004497
32.7988 0.004493
32.9497 0.004446
33.0944 0.004406
33.2379 0.004462
33.3759 0.004443
33.5100 0.004436
33.6429 0.004425
33.7713 0.004427
33.8980 0.004416
34.0198 0.004281
34.1414 0.004257
34.2599 0.004264
34.3759 0.004214
34.4897 0.004142
34.6025 0.004156
34.7120 0.004136
34.8203 0.004140
34.9263 0.004162
35.0311 0.004129
35.1342 0.004154
35.2363 0.004137
35.3366 0.004111
35.4364 0.004126
35.5368 0.004131
35.6357 0.004129
35.7320 0.004046
35.8289 0.004054
35.9241 0.004010
36.0176 0.003977
36.1118 0.003992
36.2046 0.003973
36.2969 0.003984
36.3896 0.004019
36.4795 0.004078
36.5694 0.004083
36.6590 0.004042
36.7470 0.004013
36.8348 0.004055
36.9234 0.004032
37.0101 0.004038
37.0959 0.004036
37.1816 0.003992
37.2679 0.003986
37.3548 0.003998
37.4395 0.003996
37.5239 0.004028
37.6089 0.004047
37.6927 0.004014
37.7765 0.003999
37.8600 0.003970
37.9437 0.004015
38.0257 0.003973
38.1077 0.003984
38.1907 0.003976
38.2730 0.003958
38.3559 0.003935
38.4385 0.003932
38.5207 0.003967
38.6023 0.003995
38.6846 0.003972
38.7650 0.004035
38.8459 0.004054
38.9278 0.004064
39.0087 0.004081
39.0899 0.004100
39.1712 0.004127
39.2518 0.004135
39.3332 0.004162
39.4150 0.004144
39.4960 0.004159
39.5769 0.004226
39.6590 0.004191
39.7400 0.004190
39.8209 0.004192
39.9023 0.004177
39.9841 0.004224
40.0653 0.004178
40.1455 0.004205
40.2287 0.004226
40.3110 0.004248
40.3934 0.004297
40.4757 0.004336
40.5577 0.004304
40.6419 0.004332
40.7245 0.004334
40.8083 0.004365
40.8912 0.004335
40.9749 0.004341
41.0577 0.004354
41.1415 0.004351
41.2266 0.004323
41.3110 0.004360
41.3967 0.004373
41.4819 0.004371
41.5677 0.004401
41.6545 0.004393
41.7410 0.004421
41.8281 0.004418
41.9158 0.004514
42.0035 0.004545
42.0916 0.004533
42.1818 0.004546
42.2724 0.004553
42.3613 0.004612
42.4519 0.004644
42.5440 0.004680
42.6364 0.004708
42.7281 0.004713
42.8215 0.004816
42.9165 0.004837
43.0100 0.004844
43.1043 0.004864
43.1999 0.004818
43.2966 0.004867
43.3943 0.004869
43.4919 0.004947
43.5900 0.004937
43.6908 0.005049
43.7903 0.005031
43.8913 0.005076
43.9945 0.005079
44.0983 0.005118
44.2045 0.005180
44.3100 0.005271
44.4167 0.005278
44.5239 0.005331
44.6329 0.005407
44.7437 0.005458
44.8563 0.005460
44.9694 0.005478
45.0831 0.005499
45.1999 0.005521
45.3176 0.005540
45.4375 0.005578
45.5602 0.005580
45.6832 0.005650
45.8090 0.005671
45.9364 0.005814
46.0666 0.005942
46.1969 0.006037
46.3321 0.006118
46.4674 0.006154
46.6051 0.006213
46.7473 0.006314
46.8898 0.006378
47.0366 0.006480
47.1857 0.006494
47.3379 0.006660
47.4937 0.006693
47.6533 0.006723
47.8177 0.006706
47.9866 0.006816
48.1596 0.006947
48.3384 0.007047
48.5224 0.007077
48.7107 0.007209
48.9062 0.007408
49.1088 0.007473
49.3167 0.007710
49.5319 0.007751
49.7526 0.007864
49.9841 0.007973
50.2268 0.008123
50.4791 0.008412
50.7438 0.008580
51.0237 0.008797
51.3168 0.008954
51.6304 0.008969
51.9632 0.009069
52.3174 0.009216
52.6966 0.009514
53.1096 0.009663
53.5598 0.010132
54.0538 0.010603
54.6109 0.011001
55.2442 0.011802
55.9770 0.012392
56.8572 0.014126
57.9781 0.015824
59.5214 0.019538
59.9174 0.019964
60.3531 0.020928
60.8397 0.022052
61.4093 0.023675
62.0621 0.025991
62.8795 0.028163
63.8858 0.032741
65.2550 0.039958
67.4927 0.054651
69.7497 0.076407
72.7580 0.115266
74.8856 0.172067
lm1s-07-2 3 1
23.3079 0.046096
23.9197 0.034712
24.8018 0.023659
25.5551 0.018467
26.3820 0.014367
26.9245 0.011850
27.3224 0.010582
27.6421 0.009597
27.9092 0.009145
28.1397 0.008767
28.3422 0.008784
28.5272 0.008342
28.6993 0.007988
29.3909 0.006999
29.9138 0.006832
30.3442 0.006366
30.7130 0.006040
31.0399 0.005811
31.3356 0.005754
31.6022 0.005569
31.8461 0.005470
32.0732 0.005281
32.2897 0.005171
32.4941 0.004943
32.6873 0.004874
32.8699 0.004794
33.0453 0.004596
33.2133 0.004581
33.3746 0.004523
33.5303 0.004424
33.6840 0.004383
33.8310 0.004420
33.9740 0.004354
34.1133 0.004309
34.2499 0.004381
34.3827 0.004378
34.5099 0.004324
34.6354 0.004207
34.7568 0.004245
34.8786 0.004202
34.9961 0.004215
35.1113 0.004272
35.2262 0.004250
35.3375 0.004207
35.4486 0.004116
35.5580 0.004157
35.6640 0.004173
35.7696 0.004181
35.8741 0.004170
35.9779 0.004146
36.0781 0.004092
36.1786 0.004109
36.2775 0.004083
36.3750 0.004097
36.4720 0.004134
36.5682 0.004186
36.6646 0.004156
36.7595 0.004116
36.8529 0.004140
36.9448 0.004129
37.0366 0.004138
37.1291 0.004075
37.2202 0.004062
37.3102 0.004068
37.3999 0.004039
37.4875 0.004090
37.5753 0.004075
37.6626 0.004064
37.7504 0.004049
37.8370 0.004069
37.9244 0.004041
38.0109 0.004022
38.0969 0.004023
38.1816 0.003997
38.2656 0.003970
38.3508 0.003958
38.4354 0.003975
38.5190 0.004006
38.6030 0.003916
38.6862 0.003947
38.7705 0.003937
38.8526 0.003963
38.9349 0.003942
39.0175 0.003979
39.1000 0.003993
39.1821 0.003999
39.2638 0.004041
39.3457 0.004072
39.4271 0.004097
39.5097 0.004111
39.5901 0.004114
39.6716 0.004118
39.7527 0.004125
39.8345 0.004129
39.9165 0.004151
39.9976 0.004109
40.0788 0.004137
40.1592 0.004107
40.2414 0.004131
40.3222 0.004122
40.4038 0.004119
40.4853 0.004134
40.5660 0.004152
40.6481 0.004156
40.7305 0.004221
40.8129 0.004257
40.8944 0.004244
40.9757 0.004240
41.0582 0.004213
41.1402 0.004241
41.2219 0.004213
41.3051 0.004168
41.3888 0.004152
41.4720 0.004173
41.5552 0.004219
41.6397 0.004181
41.7234 0.004230
41.8072 0.004258
41.8908 0.004317
41.9749 0.004355
42.0597 0.004419
42.1459 0.004395
42.2312 0.004362
42.3176 0.004405
42.4046 0.004414
42.4915 0.004417
42.5787 0.004396
42.6671 0.004429
42.7552 0.004454
42.8439 0.004533
42.9332 0.004593
43.0222 0.004617
43.1127 0.004629
43.2028 0.004604
43.2945 0.004653
43.3859 0.004674
43.4794 0.004690
43.5726 0.004721
43.6666 0.004750
43.7600 0.004807
43.8556 0.004882
43.9512 0.004944
44.0477 0.004941
44.1460 0.004953
44.2427 0.004955
44.3416 0.005002
44.4406 0.005024
44.5408 0.005048
44.6434 0.005086
44.7454 0.005123
44.8484 0.005124
44.9528 0.005146
45.0597 0.005212
45.1662 0.005236
45.2731 0.005278
45.3835 0.005269
45.4949 0.005289
45.6067 0.005347
45.7225 0.005429
45.8370 0.005436
45.9524 0.005512
46.0708 0.005533
46.1902 0.005607
46.3113 0.005677
46.4354 0.005705
46.5596 0.005780
46.6862 0.005903
46.8170 0.006024
46.9485 0.006038
47.0833 0.006149
47.2196 0.006176
47.3582 0.006175
47.4984 0.006328
47.6434 0.006407
47.7908 0.006542
47.9409 0.006621
48.0932 0.006629
48.2512 0.006680
48.4104 0.006744
48.5740 0.006842
48.7419 0.006876
48.9159 0.006958
49.0927 0.006963
49.2769 0.007059
49.4669 0.007292
49.6613 0.007373
49.8638 0.007435
50.0719 0.007525
50.2868 0.007627
50.5096 0.007845
50.7414 0.007923
50.9842 0.008110
51.2347 0.008244
51.4989 0.008362
51.7813 0.008451
52.0782 0.008640
52.3925 0.008876
52.7222 0.009073
53.0708 0.009113
53.4522 0.009325
53.8627 0.009781
54.3113 0.010298
54.8128 0.010674
55.3723 0.011009
56.0038 0.011616
56.7364 0.012724
57.6224 0.013572
58.7486 0.015554
60.2926 0.019080
60.6766 0.019830
61.1084 0.020598
61.6092 0.021803
62.1695 0.023637
62.8339 0.025428
63.6293 0.027959
64.6321 0.031752
66.0113 0.039127
68.2904 0.054052
70.5469 0.073407
73.5575 0.109086
75.7377 0.164504
lm2-07-2 3 1
24.9872 0.048439
25.6366 0.036169
26.5910 0.026178
27.3795 0.019855
28.2289 0.015354
28.7616 0.013076
29.1525 0.011642
29.4865 0.010890
29.7653 0.010349
29.9989 0.009851
30.2104 0.009146
30.4050 0.008684
30.5781 0.008254
31.2840 0.007465
31.8205 0.007135
32.2611 0.006634
32.6485 0.006163
32.9836 0.005911
33.2824 0.005635
33.5605 0.005462
33.8166 0.005316
34.0565 0.005147
34.2786 0.005091
34.4905 0.005027
34.6882 0.005002
34.8802 0.004928
35.0635 0.004996
35.2374 0.004908
35.4049 0.004922
35.5660 0.004896
35.7218 0.004829
35.8750 0.004751
36.0210 0.004729
36.1626 0.004686
36.3018 0.004705
36.4364 0.004613
36.5706 0.004576
36.7008 0.004489
36.8290 0.004427
36.9550 0.004411
37.0759 0.004469
37.1959 0.004371
37.3150 0.004416
37.4309 0.004407
37.5445 0.004412
37.6565 0.004429
37.7668 0.004451
37.8765 0.004415
37.9840 0.004417
38.0895 0.004383
38.1948 0.004387
38.2981 0.004343
38.3994 0.004350
38.5006 0.004318
38.6000 0.004272
38.6985 0.004309
38.7950 0.004259
38.8929 0.004279
38.9901 0.004335
39.0859 0.004320
39.1803 0.004337
39.2755 0.004333
39.3680 0.004364
39.4608 0.004345
39.5520 0.004321
39.6442 0.004301
39.7355 0.004295
39.8263 0.004273
39.9165 0.004243
40.0050 0.004266
40.0939 0.004247
40.1821 0.004232
40.2701 0.004283
40.3581 0.004304
40.4451 0.004330
40.5321 0.004324
40.6188 0.004305
40.7042 0.004319
40.7912 0.004286
40.8773 0.004291
40.9624 0.004307
41.0482 0.004309
41.1331 0.004316
41.2175 0.004268
41.3029 0.004282
41.3887 0.004283
41.4731 0.004253
41.5575 0.004268
41.6411 0.004196
41.7253 0.004220
41.8095 0.004211
41.8926 0.004275
41.9770 0.004251
42.0599 0.004289
42.1428 0.004315
42.2262 0.004332
42.3102 0.004372
42.3950 0.004350
42.4775 0.004367
42.5614 0.004412
42.6453 0.004478
42.7280 0.004530
42.8121 0.004569
42.8955 0.004611
42.9784 0.004609
43.0613 0.004629
43.1456 0.004640
43.2288 0.004653
43.3128 0.004703
43.3968 0.004729
43.4823 0.004737
43.5671 0.004800
43.6522 0.004768
43.7379 0.004792
43.8241 0.004797
43.9100 0.004824
43.9975 0.004815
44.0840 0.004805
44.1712 0.004807
44.2588 0.004842
44.3457 0.004861
44.4343 0.004861
44.5217 0.004871
44.6113 0.004892
44.7001 0.004840
44.7879 0.004871
44.8777 0.004913
44.9688 0.004960
45.0594 0.004996
45.1501 0.005011
45.2420 0.005026
45.3349 0.004980
45.4276 0.004989
45.5198 0.005041
45.6142 0.005016
45.7078 0.005051
45.8025 0.005072
45.8978 0.005075
45.9943 0.005076
46.0911 0.005116
46.1887 0.005166
46.2873 0.005158
46.3860 0.005215
46.4871 0.005238
46.5888 0.005261
46.6903 0.005304
46.7921 0.005333
46.8956 0.005387
47.0002 0.005370
47.1058 0.005451
47.2115 0.005500
47.3186 0.005501
47.4269 0.005531
47.5365 0.005551
47.6484 0.005524
47.7603 0.005612
47.8742 0.005619
47.9892 0.005666
48.1069 0.005732
48.2258 0.005754
48.3444 0.005756
48.4643 0.005773
48.5874 0.005848
48.7141 0.005985
48.8402 0.005993
48.9680 0.005986
49.1000 0.006024
49.2315 0.006022
49.3664 0.005994
49.5032 0.006047
49.6422 0.006051
49.7842 0.006113
49.9273 0.006162
50.0749 0.006283
50.2264 0.006421
50.3823 0.006504
50.5381 0.006573
50.7000 0.006557
50.8649 0.006593
51.0348 0.006590
51.2077 0.006752
51.3854 0.006801
51.5698 0.007010
51.7571 0.007125
51.9502 0.007231
52.1487 0.007253
52.3544 0.007388
52.5663 0.007530
52.7879 0.007642
53.0161 0.007590
53.2518 0.007874
53.4972 0.008073
53.7587 0.008132
54.0311 0.008278
54.3181 0.008396
54.6176 0.008598
54.9371 0.008771
55.2758 0.009059
55.6425 0.009460
56.0313 0.009837
56.4580 0.010228
56.9184 0.010481
57.4251 0.010850
57.9960 0.011418
58.6432 0.012193
59.3957 0.013433
60.3057 0.014414
61.4489 0.016423
63.0143 0.019234
63.4109 0.020028
63.8484 0.021148
64.3550 0.021995
64.9330 0.023603
65.5714 0.024930
66.4192 0.027740
67.4137 0.032603
68.8250 0.039025
71.2132 0.054024
73.5250 0.070122
76.5198 0.118265
78.7700 0.169709
lm2s-07-2 3 1
25.6600 0.047811
26.3409 0.036240
27.2843 0.026883
28.0816 0.020116
28.9413 0.015367
29.4722 0.013223
29.8835 0.012049
30.2216 0.010805
30.5005 0.010270
30.7383 0.009735
30.9466 0.009303
31.1378 0.008755
31.3112 0.008469
32.0233 0.007507
32.5661 0.006810
33.0094 0.006395
33.3909 0.006064
33.7253 0.005836
34.0294 0.005547
34.3045 0.005406
34.5661 0.005284
34.8028 0.005287
35.0244 0.005187
35.2350 0.005268
35.4339 0.005156
35.6252 0.005047
35.8076 0.005032
35.9841 0.005011
36.1507 0.004894
36.3126 0.004872
36.4688 0.004711
36.6213 0.004722
36.7675 0.004637
36.9104 0.004620
37.0507 0.004545
37.1886 0.004497
37.3209 0.004463
37.4510 0.004484
37.5780 0.004511
37.7053 0.004410
37.8290 0.004384
37.9486 0.004437
38.0669 0.004420
38.1814 0.004403
38.2959 0.004359
38.4081 0.004363
38.5178 0.004318
38.6270 0.004295
38.7330 0.004268
38.8392 0.004269
38.9453 0.004307
39.0482 0.004252
39.1495 0.004240
39.2506 0.004276
39.3509 0.004288
39.4494 0.004262
39.5475 0.004244
39.6454 0.004275
39.7416 0.004234
39.8366 0.004218
39.9304 0.004178
40.0246 0.004164
40.1183 0.004167
40.2120 0.004148
40.3037 0.004169
40.3962 0.004155
40.4866 0.004164
40.5765 0.004169
40.6671 0.004154
40.7575 0.004177
40.8467 0.004216
40.9344 0.004216
41.0231 0.004220
41.1120 0.004210
41.1990 0.004220
41.2851 0.004237
41.3716 0.004271
41.4595 0.004269
41.5449 0.004293
41.6307 0.004261
41.7169 0.004223
41.8023 0.004190
41.8877 0.004202
41.9720 0.004231
42.0563 0.004201
42.1402 0.004228
42.2257 0.004201
42.3095 0.004183
42.3940 0.004254
42.4781 0.004239
42.5615 0.004221
42.6462 0.004282
42.7289 0.004244
42.8127 0.004280
42.8958 0.004336
42.9781 0.004394
43.0617 0.004347
43.1445 0.004371
43.2276 0.004421
43.3123 0.004447
43.3962 0.004460
43.4796 0.004521
43.5627 0.004521
43.6471 0.004508
43.7318 0.004530
43.8158 0.004546
43.9001 0.004532
43.9846 0.004527
44.0691 0.004525
44.1547 0.004583
44.2399 0.004621
44.3261 0.004614
44.4119 0.004672
44.4974 0.004724
44.5820 0.004736
44.6673 0.004752
44.7534 0.004832
44.8397 0.004846
44.9267 0.004873
45.0141 0.004860
45.1009 0.004892
45.1890 0.004882
45.2780 0.004909
45.3675 0.004910
45.4560 0.004927
45.5450 0.005009
45.6348 0.004994
45.7244 0.005032
45.8158 0.005060
45.9078 0.005041
45.9981 0.005060
46.0897 0.005088
46.1827 0.005108
46.2767 0.005083
46.3714 0.005099
46.4656 0.005070
46.5615 0.005080
46.6581 0.005086
46.7543 0.005094
46.8513 0.005115
46.9495 0.005184
47.0479 0.005207
47.1471 0.005258
47.2478 0.005278
47.3482 0.005283
47.4491 0.005365
47.5518 0.005335
47.6548 0.005376
47.7591 0.005370
47.8644 0.005357
47.9712 0.005380
48.0791 0.005323
48.1884 0.005386
48.2986 0.005451
48.4085 0.005487
48.5200 0.005486
48.6332 0.005526
48.7498 0.005589
48.8664 0.005653
48.9847 0.005611
49.1041 0.005634
49.2240 0.005716
49.3461 0.005773
49.4707 0.005841
49.5982 0.005898
49.7278 0.005857
49.8580 0.005854
49.9898 0.005844
50.1245 0.005894
50.2615 0.005931
50.4006 0.005993
50.5418 0.006135
50.6873 0.006154
50.8364 0.006218
50.9880 0.006328
51.1427 0.006431
51.2971 0.006532
51.4584 0.006577
51.6228 0.006708
51.7926 0.006745
51.9656 0.006831
52.1435 0.006946
52.3275 0.006978
52.5150 0.007045
52.7056 0.007250
52.9047 0.007367
53.1092 0.007374
53.3194 0.007572
53.5404 0.007709
53.7690 0.007876
54.0091 0.007913
54.2588 0.008141
54.5208 0.008010
54.7914 0.008049
55.0741 0.008344
55.3765 0.008637
55.6978 0.008747
56.0393 0.009109
56.4031 0.009508
56.7947 0.009669
57.2158 0.009737
57.6768 0.010068
58.1848 0.010575
58.7494 0.011408
59.3987 0.012347
60.1575 0.013097
61.0632 0.014041
62.2050 0.016104
63.7712 0.018779
64.1736 0.019436
64.6228 0.020881
65.1211 0.022522
65.6798 0.024003
66.3610 0.025523
67.1674 0.027678
68.1650 0.032052
69.5859 0.039792
71.9268 0.051056
74.2472 0.072368
77.1531 0.121055
79.3898 0.165367
tr0-07-2 3 1
74.0962 0.120002
75.9016 0.094884
78.3869 0.064668
80.3738 0.049685
82.6445 0.039741
84.0295 0.034705
85.0734 0.031220
85.9189 0.028632
86.6405 0.026743
87.2747 0.025673
87.8246 0.024219
88.3141 0.023138
88.7554 0.021773
90.5376 0.019567
91.8841 0.016811
92.9946 0.015245
93.9228 0.014745
94.7443 0.014225
95.4757 0.013508
96.1381 0.013502
96.7471 0.013093
97.3166 0.012736
97.8479 0.012378
98.3463 0.012020
98.8213 0.011989
99.2663 0.011826
99.6957 0.011683
100.1032 0.011567
100.4999 0.011636
100.8743 0.011312
101.2375 0.010979
101.5937 0.010651
101.9402 0.010483
102.2751 0.010239
102.5942 0.010036
102.9078 0.009899
103.2129 0.009900
103.5091 0.009885
103.7980 0.009807
104.0853 0.009810
104.3650 0.009750
104.6421 0.009832
104.9102 0.009810
105.1787 0.009740
105.4388 0.009804
105.6921 0.009763
105.9406 0.009694
106.1876 0.009564
106.4292 0.009666
106.6697 0.009767
106.9052 0.009853
107.1358 0.009859
107.3681 0.009885
107.5960 0.009795
107.8188 0.009749
108.0420 0.009721
108.2608 0.009655
108.4786 0.009571
108.6943 0.009368
108.9077 0.009299
109.1172 0.009257
109.3260 0.009259
109.5351 0.009316
109.7380 0.009325
109.9410 0.009360
110.1424 0.009466
110.3402 0.009411
110.5367 0.009371
110.7344 0.009375
110.9284 0.009376
111.1234 0.009383
111.3176 0.009474
111.5130 0.009536
111.7057 0.009500
111.8982 0.009441
112.0877 0.009495
112.2761 0.009441
112.4634 0.009463
112.6474 0.009577
112.8340 0.009518
113.0167 0.009515
113.2006 0.009482
113.3862 0.009354
113.5694 0.009311
113.7523 0.009255
113.9339 0.009198
114.1144 0.009252
114.2947 0.009269
114.4765 0.009283
114.6560 0.009342
114.8370 0.009356
115.0167 0.009376
115.1959 0.009346
115.3731 0.009355
115.5511 0.009335
115.7277 0.009335
115.9053 0.009323
116.0805 0.009210
116.2571 0.009309
116.4362 0.009221
116.6133 0.009261
116.7928 0.009291
116.9709 0.009248
117.1460 0.009309
117.3225 0.009376
117.4992 0.009343
117.6780 0.009323
117.8528 0.009383
118.0325 0.009372
118.2108 0.009379
118.3916 0.009404
118.5703 0.009443
118.7510 0.009472
118.9290 0.009440
119.1096 0.009503
119.2890 0.009480
119.4665 0.009404
119.6464 0.009454
119.8255 0.009464
120.0049 0.009586
120.1879 0.009547
120.3660 0.009539
120.5494 0.009578
120.7321 0.009694
120.9175 0.009615
121.1032 0.009720
121.2888 0.009679
121.4765 0.009690
121.6619 0.009709
121.8508 0.009698
122.0391 0.009738
122.2263 0.009815
122.4132 0.009851
122.6044 0.009853
122.7949 0.009986
122.9837 0.010107
123.1757 0.010129
123.3684 0.010105
123.5622 0.010224
123.7605 0.010309
123.9549 0.010263
124.1501 0.010229
124.3489 0.010308
124.5483 0.010331
124.7526 0.010351
124.9561 0.010482
125.1652 0.010516
125.3704 0.010632
125.5792 0.010629
125.7913 0.010763
126.0024 0.010803
126.2170 0.010891
126.4339 0.010916
126.6541 0.010859
126.8759 0.010902
127.1000 0.010910
127.3262 0.010995
127.5532 0.011067
127.7831 0.011121
128.0161 0.011294
128.2514 0.011283
128.4917 0.011428
128.7356 0.011371
128.9798 0.011357
129.2298 0.011382
129.4789 0.011515
129.7341 0.011680
129.9921 0.011615
130.2525 0.011720
130.5151 0.011632
130.7850 0.011653
131.0613 0.011782
131.3380 0.011693
131.6240 0.011965
131.9156 0.012089
132.2136 0.012307
132.5126 0.012566
132.8191 0.012472
133.1360 0.012599
133.4557 0.012627
133.7791 0.012928
134.1166 0.013044
134.4648 0.013211
134.8192 0.013483
135.1886 0.013682
135.5639 0.013920
135.9468 0.013898
136.3494 0.014121
136.7699 0.014218
137.1961 0.014320
137.6426 0.014655
138.1047 0.014908
138.5853 0.015037
139.0831 0.014995
139.6119 0.015248
140.1660 0.015260
140.7429 0.015467
141.3652 0.016168
142.0146 0.016728
142.7232 0.017534
143.4900 0.018467
144.3233 0.019233
145.2370 0.020626
146.2589 0.021608
147.3983 0.023143
148.7267 0.024659
150.3113 0.026616
152.3019 0.029009
155.0095 0.033216
155.7004 0.033822
156.4749 0.035556
157.3342 0.037984
158.2913 0.040739
159.4148 0.042780
160.7545 0.048779
162.4762 0.053656
164.7630 0.063510
168.6523 0.090051
172.4688 0.127112
177.1257 0.186913
180.4365 0.253382
tr1-07-2 3 1
85.3022 0.134249
87.1877 0.100476
89.9623 0.071352
92.2122 0.051934
94.5599 0.042015
96.0844 0.035841
97.1946 0.032833
98.0975 0.029928
98.8511 0.027477
99.5156 0.025300
100.0928 0.024162
100.6072 0.022778
101.0790 0.022370
102.9693 0.020281
104.4102 0.018355
105.5789 0.017573
106.5688 0.016035
107.4370 0.015973
108.2113 0.015249
108.9156 0.014640
109.5683 0.014349
110.1677 0.013532
110.7277 0.013439
111.2565 0.013410
111.7587 0.012897
112.2385 0.012608
112.6893 0.012410
113.1172 0.011891
113.5322 0.011705
113.9293 0.011526
114.3175 0.011510
114.6920 0.011197
115.0508 0.011192
115.4027 0.011053
115.7445 0.011044
116.0750 0.010853
116.3966 0.010905
116.7099 0.010740
117.0174 0.010655
117.3195 0.010322
117.6111 0.010274
117.8974 0.010372
118.1839 0.010348
118.4600 0.010339
118.7370 0.010257
119.0025 0.010256
119.2666 0.010255
119.5321 0.010217
119.7921 0.010138
120.0433 0.010077
120.2931 0.010073
120.5393 0.010158
120.7835 0.010096
121.0233 0.010001
121.2567 0.009967
121.4882 0.010067
121.7196 0.009966
121.9501 0.009874
122.1780 0.009828
122.4042 0.009774
122.6277 0.009811
122.8479 0.009795
123.0655 0.009765
123.2808 0.009805
123.4939 0.009750
123.7063 0.009837
123.9159 0.009818
124.1252 0.009805
124.3310 0.009782
124.5402 0.009945
124.7468 0.009936
124.9507 0.009837
125.1565 0.009942
125.3603 0.009791
125.5594 0.009842
125.7600 0.009900
125.9580 0.009937
126.1583 0.009872
126.3556 0.010025
126.5520 0.009953
126.7468 0.010019
126.9407 0.009946
127.1319 0.009910
127.3267 0.009877
127.5175 0.009837
127.7100 0.009951
127.9009 0.009922
128.0906 0.009956
128.2777 0.009982
128.4664 0.009988
128.6554 0.010103
128.8420 0.009976
129.0311 0.009861
129.2160 0.009803
129.4028 0.009786
129.5899 0.009734
129.7751 0.009660
129.9620 0.009744
130.1485 0.009814
130.3356 0.009806
130.5213 0.009872
130.7071 0.009870
130.8929 0.009794
131.0771 0.009841
131.2631 0.009784
131.4479 0.009791
131.6328 0.009846
131.8173 0.009916
132.0027 0.009925
132.1874 0.009798
132.3725 0.009695
132.5619 0.009700
132.7480 0.009724
132.9356 0.009826
133.1219 0.009931
133.3079 0.009897
133.4978 0.009833
133.6860 0.009841
133.8770 0.009961
134.0687 0.010014
134.2590 0.009916
134.4493 0.010006
134.6398 0.010021
134.8317 0.009985
135.0246 0.010016
135.2158 0.010117
135.4122 0.010099
135.6070 0.010119
135.8004 0.010165
135.9940 0.010269
136.1909 0.010236
136.3891 0.010213
136.5859 0.010183
136.7864 0.010090
136.9863 0.010028
137.1881 0.010096
137.3923 0.010148
137.5941 0.010115
137.7988 0.010164
138.0048 0.010188
138.2130 0.010159
138.4186 0.010255
138.6249 0.010189
138.8377 0.010182
139.0499 0.010330
139.2660 0.010324
139.4825 0.010371
139.6996 0.010371
139.9185 0.010357
140.1405 0.010457
140.3603 0.010616
140.5854 0.010543
140.8133 0.010626
141.0376 0.010695
141.2698 0.010780
141.5046 0.010715
141.7380 0.010878
141.9764 0.010970
142.2178 0.010932
142.4582 0.011021
142.7058 0.011196
142.9573 0.011171
143.2111 0.011361
143.4660 0.011345
143.7278 0.011372
143.9916 0.011320
144.2599 0.011398
144.5315 0.011535
144.8075 0.011670
145.0880 0.011734
145.3702 0.011878
145.6604 0.011955
145.9515 0.012029
146.2501 0.012150
146.5556 0.012345
146.8642 0.012463
147.1801 0.012628
147.5033 0.012804
147.8377 0.012794
148.1787 0.012997
148.5213 0.013042
148.8738 0.013112
149.2370 0.013371
149.6089 0.013587
149.9900 0.013840
150.3826 0.013969
150.7856 0.014387
151.2035 0.014769
151.6393 0.015033
152.0837 0.015187
152.5403 0.015611
153.0206 0.015623
153.5190 0.015497
154.0462 0.015746
154.5951 0.015982
155.1711 0.016163
155.7873 0.016738
156.4327 0.017498
157.1252 0.018075
157.8700 0.018655
158.6677 0.019439
159.5361 0.020113
160.4920 0.020964
161.5507 0.022404
162.7330 0.023749
164.1413 0.025009
165.7980 0.025866
167.8577 0.029486
170.6322 0.032911
171.3623 0.034969
172.1580 0.037374
173.0142 0.040625
174.0381 0.043197
175.1804 0.046811
176.5773 0.051472
178.3401 0.056490
180.8496 0.069801
184.8469 0.095194
188.6573 0.129932
193.5236 0.192154
196.7623 0.276311
tr1s-07-2 3 1
91.5342 0.141036
93.5181 0.111304
96.2476 0.072558
98.5460 0.054042
100.9819 0.043161
102.5242 0.037494
103.6554 0.032517
104.5941 0.028951
105.3407 0.027687
106.0009 0.026297
106.5840 0.024917
107.1094 0.023932
107.5881 0.023090
109.5531 0.020086
111.0059 0.018448
112.1764 0.017172
113.1897 0.016543
114.0778 0.015342
114.8653 0.015141
115.5702 0.014458
116.2305 0.013861
116.8456 0.013293
117.4150 0.012908
117.9517 0.012653
118.4597 0.012501
118.9391 0.012575
119.4038 0.012222
119.8416 0.012115
120.2639 0.011663
120.6692 0.011532
121.0604 0.011600
121.4427 0.011497
121.8065 0.011419
122.1661 0.011401
122.5073 0.011438
122.8440 0.011175
123.1717 0.011121
123.4908 0.010868
123.8055 0.010701
124.1104 0.010685
124.4107 0.010584
124.7029 0.010548
124.9879 0.010473
125.2713 0.010396
125.5496 0.010452
125.8270 0.010611
126.0979 0.010551
126.3624 0.010473
126.6243 0.010349
126.8801 0.010261
127.1340 0.010222
127.3867 0.010254
127.6336 0.010140
127.8742 0.010095
128.1161 0.010048
128.3538 0.010062
128.5883 0.010095
128.8182 0.010119
129.0479 0.010264
129.2737 0.010282
129.4981 0.010208
129.7219 0.010343
129.9441 0.010452
130.1654 0.010337
130.3838 0.010320
130.5998 0.010392
130.8138 0.010394
131.0282 0.010186
131.2425 0.010208
131.4516 0.010126
131.6610 0.010075
131.8663 0.009990
132.0711 0.009918
132.2760 0.009959
132.4767 0.009964
132.6792 0.009877
132.8806 0.009943
133.0802 0.009893
133.2794 0.010029
133.4775 0.010057
133.6748 0.010019
133.8709 0.010043
134.0671 0.010015
134.2634 0.010049
134.4576 0.010218
134.6514 0.010259
134.8449 0.010169
135.0391 0.010134
135.2323 0.010226
135.4228 0.010103
135.6150 0.010068
135.8037 0.010098
135.9940 0.010008
136.1848 0.009947
136.3751 0.009934
136.5641 0.009976
136.7518 0.010034
136.9399 0.010034
137.1266 0.010022
137.3150 0.010047
137.5025 0.010024
137.6906 0.010039
137.8792 0.010051
138.0674 0.010082
138.2558 0.009974
138.4443 0.010007
138.6339 0.010069
138.8193 0.010212
139.0081 0.010255
139.1955 0.010028
139.3838 0.009963
139.5706 0.009915
139.7605 0.009870
139.9507 0.010033
140.1429 0.010084
140.3325 0.010122
140.5245 0.010146
140.7173 0.010107
140.9077 0.010127
141.0985 0.010050
141.2889 0.009990
141.4837 0.010063
141.6784 0.010051
141.8712 0.010034
142.0636 0.010052
142.2591 0.010185
142.4568 0.010252
142.6534 0.010106
142.8480 0.010155
143.0479 0.010077
143.2469 0.010069
143.4452 0.010177
143.6472 0.010354
143.8495 0.010385
144.0538 0.010499
144.2570 0.010498
144.4629 0.010593
144.6687 0.010607
144.8791 0.010492
145.0859 0.010572
145.2946 0.010655
145.5075 0.010776
145.7178 0.010633
145.9304 0.010656
146.1441 0.010542
146.3589 0.010557
146.5781 0.010633
146.7994 0.010681
147.0198 0.010717
147.2414 0.010879
147.4673 0.010927
147.6951 0.010981
147.9274 0.011101
148.1603 0.011214
148.3952 0.011391
148.6305 0.011337
148.8720 0.011360
149.1147 0.011386
149.3592 0.011426
149.6069 0.011494
149.8573 0.011618
150.1098 0.011683
150.3653 0.011724
150.6251 0.011645
150.8900 0.011825
151.1604 0.011829
151.4311 0.012002
151.7043 0.012048
151.9832 0.011971
152.2651 0.012224
152.5492 0.012354
152.8411 0.012379
153.1438 0.012482
153.4459 0.012606
153.7497 0.012764
154.0628 0.012718
154.3792 0.012848
154.7051 0.012992
155.0392 0.013144
155.3768 0.013276
155.7226 0.013393
156.0792 0.013368
156.4411 0.013388
156.8162 0.013642
157.2003 0.013649
157.5957 0.013774
158.0027 0.013968
158.4273 0.014280
158.8624 0.014245
159.3138 0.014384
159.7858 0.014779
160.2721 0.015065
160.7846 0.015520
161.3198 0.015857
161.8779 0.016259
162.4647 0.016758
163.0731 0.017090
163.7305 0.017664
164.4259 0.018437
165.1733 0.019103
165.9781 0.019985
166.8620 0.020208
167.8344 0.020959
168.9015 0.022224
170.1051 0.023770
171.4918 0.024636
173.1521 0.027168
175.2210 0.030002
178.1122 0.033057
178.8131 0.036484
179.5956 0.037733
180.4648 0.039258
181.4898 0.043147
182.6110 0.047122
184.0232 0.053186
185.7929 0.059857
188.2772 0.070109
192.2455 0.091968
196.2528 0.131711
201.0011 0.193531
204.5231 0.267717
tr2-07-2 3 1
97.5432 0.148166
99.5279 0.112678
102.2457 0.077004
104.6425 0.059131
107.2106 0.043718
108.8100 0.037316
110.0001 0.034856
110.9440 0.031347
111.7333 0.029314
112.4029 0.027759
113.0090 0.026327
113.5640 0.025088
114.0576 0.024088
116.0758 0.020750
117.6029 0.019270
118.8312 0.017723
119.8847 0.016903
120.8034 0.015983
121.6244 0.016003
122.3691 0.015495
123.0491 0.015165
123.6779 0.014900
124.2673 0.014649
124.8257 0.014304
125.3538 0.014091
125.8636 0.013931
126.3345 0.013353
126.7886 0.012858
127.2317 0.012731
127.6515 0.012510
128.0601 0.012374
128.4542 0.012199
128.8323 0.012092
129.1954 0.011872
129.5529 0.011832
129.9030 0.011919
130.2436 0.011644
130.5744 0.011540
130.9044 0.011490
131.2253 0.011496
131.5342 0.011465
131.8381 0.011469
132.1383 0.011287
132.4290 0.011497
132.7166 0.011470
132.9985 0.011443
133.2796 0.011385
133.5505 0.011226
133.8233 0.011351
134.0909 0.011225
134.3508 0.011060
134.6121 0.011046
134.8673 0.011051
135.1203 0.010962
135.3710 0.011003
135.6170 0.010956
135.8565 0.010851
136.0951 0.010732
136.3346 0.010625
136.5708 0.010756
136.8054 0.010758
137.0374 0.010585
137.2653 0.010499
137.4940 0.010434
137.7196 0.010391
137.9416 0.010460
138.1653 0.010570
138.3865 0.010551
138.6044 0.010597
138.8240 0.010537
139.0414 0.010549
139.2577 0.010546
139.4728 0.010426
139.6829 0.010456
139.8914 0.010566
140.1009 0.010547
140.3093 0.010565
140.5173 0.010586
140.7250 0.010526
140.9290 0.010532
141.1302 0.010586
141.3331 0.010566
141.5364 0.010609
141.7405 0.010589
141.9416 0.010592
142.1410 0.010532
142.3404 0.010564
142.5403 0.010638
142.7416 0.010659
142.9395 0.010710
143.1363 0.010754
143.3341 0.010674
143.5351 0.010617
143.7323 0.010541
143.9262 0.010467
144.1227 0.010489
144.3196 0.010459
144.5149 0.010467
144.7128 0.010346
144.9074 0.010306
145.1042 0.010265
145.2985 0.010301
145.4944 0.010375
145.6903 0.010308
145.8865 0.010277
146.0836 0.010356
146.2799 0.010315
146.4746 0.010282
146.6719 0.010368
146.8695 0.010414
147.0647 0.010359
147.2593 0.010355
147.4567 0.010418
147.6502 0.010489
147.8453 0.010516
148.0432 0.010539
148.2420 0.010504
148.4386 0.010438
148.6384 0.010393
148.8362 0.010365
149.0328 0.010336
149.2328 0.010248
149.4314 0.010328
149.6312 0.010402
149.8338 0.010487
150.0372 0.010509
150.2393 0.010560
150.4426 0.010629
150.6469 0.010584
150.8517 0.010616
151.0570 0.010678
151.2645 0.010784
151.4710 0.010870
151.6814 0.010810
151.8939 0.010774
152.1031 0.010664
152.3174 0.010684
152.5343 0.010684
152.7500 0.010633
152.9650 0.010651
153.1827 0.010542
153.4009 0.010560
153.6218 0.010736
153.8447 0.010875
154.0640 0.010853
154.2881 0.010850
154.5129 0.010844
154.7390 0.010916
154.9680 0.010958
155.2007 0.011030
155.4334 0.011060
155.6673 0.011166
155.9029 0.011272
156.1427 0.011349
156.3846 0.011273
156.6323 0.011445
156.8806 0.011534
157.1320 0.011604
157.3828 0.011776
157.6363 0.011743
157.8956 0.011798
158.1586 0.011847
158.4241 0.012078
158.6925 0.011976
158.9622 0.012004
159.2346 0.012011
159.5125 0.012010
159.7930 0.012052
160.0799 0.012079
160.3686 0.012304
160.6663 0.012554
160.9662 0.012593
161.2738 0.012637
161.5868 0.012822
161.9032 0.012889
162.2286 0.012965
162.5581 0.013028
162.8971 0.013052
163.2400 0.013106
163.5928 0.013299
163.9500 0.013570
164.3206 0.013898
164.6975 0.013977
165.0876 0.014113
165.4890 0.014144
165.8971 0.014145
166.3197 0.014372
166.7583 0.014616
167.2067 0.014829
167.6796 0.015034
168.1666 0.015036
168.6692 0.015322
169.1943 0.015686
169.7378 0.016160
170.3148 0.016795
170.9177 0.016969
171.5560 0.017312
172.2219 0.017761
172.9428 0.018528
173.7112 0.019115
174.5493 0.019434
175.4421 0.019545
176.4386 0.020568
177.5402 0.021704
178.7818 0.023392
180.2385 0.025813
181.9599 0.028170
184.0897 0.030371
187.0093 0.033819
187.7282 0.036516
188.5579 0.038236
189.4613 0.041056
190.5037 0.044191
191.7196 0.047980
193.1723 0.052085
195.0242 0.059193
197.4403 0.070234
201.6457 0.089682
205.6764 0.126035
210.8762 0.193654
214.4125 0.258924
tr2s-07-2 3 1
104.2010 0.145482
106.2101 0.105934
109.0480 0.076732
111.3405 0.060918
113.9663 0.045684
115.5868 0.038494
116.7825 0.035488
117.7320 0.032510
118.5159 0.030162
119.2076 0.028363
119.8179 0.026827
120.3702 0.025863
120.8582 0.025000
122.8821 0.021278
124.4144 0.019259
125.6511 0.018441
126.7112 0.017034
127.6283 0.016600
128.4488 0.015720
129.2064 0.015073
129.8919 0.014671
130.5326 0.014436
131.1429 0.014353
131.7049 0.014193
132.2338 0.013848
132.7380 0.013315
133.2213 0.013148
133.6787 0.013304
134.1170 0.013182
134.5451 0.012941
134.9550 0.012848
135.3514 0.012887
135.7347 0.012724
136.1029 0.012567
136.4666 0.012666
136.8181 0.012431
137.1575 0.012277
137.4931 0.012076
137.8170 0.011837
138.1342 0.011677
138.4485 0.011574
138.7612 0.011545
139.0640 0.011610
139.3576 0.011553
139.6494 0.011524
139.9350 0.011533
140.2127 0.011490
140.4857 0.011447
140.7575 0.011435
141.0241 0.011272
141.2871 0.011305
141.5493 0.011337
141.8051 0.011290
142.0558 0.011333
142.3059 0.011291
142.5503 0.011248
142.7984 0.011173
143.0427 0.010933
143.2841 0.010897
143.5228 0.010701
143.7582 0.010547
143.9942 0.010557
144.2249 0.010562
144.4536 0.010500
144.6776 0.010423
144.9042 0.010457
145.1230 0.010585
145.3452 0.010538
145.5629 0.010530
145.7824 0.010662
146.0018 0.010611
146.2174 0.010654
146.4344 0.010689
146.6488 0.010665
146.8621 0.010632
147.0717 0.010591
147.2843 0.010662
147.4910 0.010616
147.6969 0.010576
147.9020 0.010620
148.1087 0.010738
148.3098 0.010580
148.5117 0.010631
148.7157 0.010716
148.9204 0.010710
149.1215 0.010629
149.3227 0.010596
149.5251 0.010693
149.7273 0.010586
149.9275 0.010514
150.1272 0.010644
150.3276 0.010703
150.5273 0.010666
150.7256 0.010722
150.9219 0.010763
151.1194 0.010798
151.3164 0.010815
151.5128 0.010730
151.7093 0.010699
151.9047 0.010672
152.1015 0.010537
152.2981 0.010443
152.4939 0.010464
152.6891 0.010428
152.8851 0.010501
153.0800 0.010424
153.2789 0.010407
153.4736 0.010463
153.6707 0.010468
153.8673 0.010536
154.0635 0.010474
154.2605 0.010492
154.4587 0.010406
154.6552 0.010320
154.8543 0.010358
155.0522 0.010401
155.2519 0.010374
155.4483 0.010296
155.6498 0.010356
155.8489 0.010412
156.0505 0.010434
156.2508 0.010362
156.4541 0.010316
156.6531 0.010306
156.8561 0.010457
157.0610 0.010458
157.2643 0.010531
157.4684 0.010438
157.6710 0.010518
157.8768 0.010618
158.0815 0.010682
158.2880 0.010758
158.4980 0.010803
158.7098 0.010941
158.9206 0.010909
159.1344 0.010918
159.3463 0.010891
159.5577 0.010919
159.7726 0.010990
159.9886 0.010997
160.2071 0.010989
160.4266 0.011017
160.6465 0.010935
160.8678 0.010982
161.0907 0.011027
161.3175 0.010979
161.5446 0.011016
161.7712 0.011139
162.0035 0.011144
162.2345 0.011399
162.4666 0.011487
162.7051 0.011461
162.9406 0.011591
163.1830 0.011509
163.4266 0.011779
163.6742 0.011707
163.9205 0.011872
164.1717 0.012028
164.4212 0.012090
164.6797 0.012111
164.9400 0.012281
165.2021 0.012255
165.4689 0.012309
165.7404 0.012499
166.0137 0.012606
166.2852 0.012756
166.5681 0.012887
166.8531 0.013075
167.1454 0.013101
167.4345 0.013037
167.7304 0.013261
168.0358 0.013317
168.3467 0.013304
168.6616 0.013435
168.9782 0.013355
169.3037 0.013436
169.6357 0.013626
169.9770 0.013555
170.3228 0.013535
170.6721 0.013564
171.0360 0.013941
171.4104 0.014132
171.7890 0.014235
172.1800 0.014446
172.5824 0.014333
172.9940 0.014441
173.4213 0.014723
173.8572 0.014862
174.3119 0.014931
174.7797 0.014998
175.2656 0.014958
175.7686 0.015295
176.2910 0.015603
176.8461 0.016009
177.4250 0.016167
178.0337 0.016092
178.6784 0.016746
179.3557 0.017103
180.0701 0.017642
180.8380 0.018640
181.6729 0.019673
182.5838 0.020261
183.5623 0.021423
184.6639 0.022210
185.8973 0.024036
187.3375 0.025442
189.0770 0.027526
191.2349 0.030383
194.1546 0.035116
194.8931 0.037189
195.7061 0.038974
196.6168 0.041624
197.6682 0.044244
198.9046 0.047996
200.3776 0.053094
202.2005 0.061029
204.6980 0.071073
208.8219 0.096116
212.9376 0.122372
218.0978 0.192383
221.9083 0.268613
|
--SELECT MAX("MLB_37"."AVG") AS "TEMP(attr:AVG:qk)(3030839854)(0)", MIN("MLB_37"."AVG") AS "TEMP(attr:AVG:qk)(3417196579)(0)", MAX("MLB_37"."BABIP") AS "TEMP(attr:BABIP:qk)(4285141330)(0)", MIN("MLB_37"."BABIP") AS "TEMP(attr:BABIP:qk)(611967120)(0)", MAX("MLB_37"."ISO") AS "TEMP(attr:ISO:qk)(2407168166)(0)", MIN("MLB_37"."ISO") AS "TEMP(attr:ISO:qk)(3982906464)(0)", MAX("MLB_37"."wOBA") AS "TEMP(attr:wOBA:qk)(1583528808)(0)", MIN("MLB_37"."wOBA") AS "TEMP(attr:wOBA:qk)(2877628247)(0)", "MLB_37"."league" AS "league", CAST("MLB_37"."oi" AS BIGINT) AS "oi", CAST("MLB_37"."year" AS BIGINT) AS "year" FROM "MLB_37" WHERE (("MLB_37"."league" = 'PCL') AND (CAST("MLB_37"."oi" AS BIGINT) = 0) AND (CAST("MLB_37"."year" AS BIGINT) = 2015)) GROUP BY 9, "MLB_37"."oi", "MLB_37"."year", 10, 11;
|
CREATE OR REPLACE FUNCTION "GET_FISH_PARTS_COUNTS"
( collection_object_id IN NUMBER
) RETURN VARCHAR2
-- Given a collection_object.collection_object_id, returns a string --
-- representing the numbers of Alcohol, Cleared and Stained, and --
-- skeletal specimen_parts that exist for that collection_object --
-- in the form "x Alc, y C&S, z Skel.", where x, y and z are either --
-- zero or the number of parts of that preparation type. --
-- This is for the fish label format that follows the Muse format --
-- of Alc, C&S, and Skel counts of specimens in each lot [muse --
-- record]. --
as
type rc is ref cursor;
l_str varchar2(4000);
l_sep varchar2(2);
l_ord integer;
l_txt varchar2(10);
l_val INTEGER;
l_alc_val INTEGER;
l_cs_val INTEGER;
l_skel_val integer;
l_cur rc;
begin
open l_cur for '
select 1 as ordinal, ''Alc'', sum(coll_object.lot_count)
from specimen_part
left join coll_object on specimen_part.collection_object_id = coll_object.collection_object_id
where (preserve_method like ''%ethanol'' or preserve_method like ''%alcohol'' or preserve_method like ''%isopropyl'')
and derived_from_cat_item = :x
and part_name <> ''tissue''
group by derived_from_cat_item
union
select 2 as ordinal, ''CS'', sum(coll_object.lot_count)
from specimen_part
left join coll_object on specimen_part.collection_object_id = coll_object.collection_object_id
where preserve_method like ''%cleared and stained''
and derived_from_cat_item = :x1
group by derived_from_cat_item
union
select 3 as ordinal, ''Skel'', sum(coll_object.lot_count)
from specimen_part
left join coll_object on specimen_part.collection_object_id = coll_object.collection_object_id
where ( ( part_name like ''%skeleton'' or part_name = ''skull'' ) and ( preserve_method = ''mounted'' or preserve_method = ''dry'') )
and derived_from_cat_item = :x2
group by derived_from_cat_item'
using collection_object_id, collection_object_id, collection_object_id;
l_alc_val := 0;
l_cs_val := 0;
l_skel_val := 0;
loop
fetch l_cur into l_ord, l_txt, l_val;
exit when l_cur%notfound;
if l_ord = 1 then l_alc_val := l_val; end if;
if l_ord = 2 then l_cs_val := l_val; end if;
if l_ord = 3 then l_skel_val := l_val; end if;
end loop;
close l_cur;
l_str := l_alc_val || ' Alc, ' || l_cs_val || ' C&S, ' || l_skel_val || ' Skel.';
return l_str;
END;
|
select count(*) as validation_errors
from (
select
team_id
from `dbt-package-testing`.`dbt_jamie`.`asana_team`
where team_id is not null
group by team_id
having count(*) > 1
) validation_errors
|
-- --------------------------------------------------------
-- 主机: localhost
-- 服务器版本: 5.7.21 - MySQL Community Server (GPL)
-- 服务器操作系统: Linux
-- HeidiSQL 版本: 8.0.0.4396
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- 导出 fw-cloud-pay 的数据库结构
DROP DATABASE IF EXISTS `fw-cloud-pay`;
CREATE DATABASE IF NOT EXISTS `fw-cloud-pay` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `fw-cloud-pay`;
-- 导出 表 fw-cloud-pay.t_pay_channel 结构
DROP TABLE IF EXISTS `t_pay_channel`;
CREATE TABLE IF NOT EXISTS `t_pay_channel` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '渠道主键ID',
`channel_id` varchar(32) NOT NULL COMMENT '渠道ID',
`channel_name` varchar(32) NOT NULL COMMENT '渠道名称,如:alipay,wechat',
`channel_mch_id` varchar(32) NOT NULL COMMENT '渠道商户ID',
`mch_id` varchar(32) NOT NULL COMMENT '商户ID',
`statu` smallint(1) NOT NULL DEFAULT '1' COMMENT '渠道状态,0-停止使用,1-使用中',
`param` varchar(4096) NOT NULL COMMENT '配置参数,json字符串',
`remark` varchar(128) DEFAULT NULL COMMENT '备注',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `index_mchid_channelid` (`channel_id`,`mch_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='支付渠道表';
-- 正在导出表 fw-cloud-pay.t_pay_channel 的数据:~1 rows (大约)
DELETE FROM `t_pay_channel`;
/*!40000 ALTER TABLE `t_pay_channel` DISABLE KEYS */;
INSERT INTO `t_pay_channel` (`id`, `channel_id`, `channel_name`, `channel_mch_id`, `mch_id`, `statu`, `param`, `remark`, `create_time`, `update_time`) VALUES
(1, 'WX_JSAPI', 'WX', '111111', '10000001', 1, '{"mchId":"111111", "appId":"xxxsss", "key":"xxxxxx", "certLocalPath":"wx/apiclient_cert.p12", "certPassword":"xxxxxx"}', '', '2017-11-20 10:08:54', '2018-05-16 13:41:34');
/*!40000 ALTER TABLE `t_pay_channel` ENABLE KEYS */;
-- 导出 表 fw-cloud-pay.t_pay_iap_receipt 结构
DROP TABLE IF EXISTS `t_pay_iap_receipt`;
CREATE TABLE IF NOT EXISTS `t_pay_iap_receipt` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`pay_order_id` varchar(32) NOT NULL COMMENT '支付订单号',
`mch_id` varchar(32) NOT NULL COMMENT '商户ID',
`transaction_id` varchar(32) NOT NULL COMMENT 'IAP业务号',
`status` smallint(1) NOT NULL DEFAULT '0' COMMENT '处理状态:0-未处理,1-处理成功,-1-处理失败',
`handle_count` smallint(1) NOT NULL DEFAULT '0' COMMENT '处理次数',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`receipt_data` text NOT NULL COMMENT '渠道ID',
PRIMARY KEY (`id`),
UNIQUE KEY `index_pay_iap_payorderid` (`pay_order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='苹果支付凭据表';
-- 正在导出表 fw-cloud-pay.t_pay_iap_receipt 的数据:~0 rows (大约)
DELETE FROM `t_pay_iap_receipt`;
/*!40000 ALTER TABLE `t_pay_iap_receipt` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_pay_iap_receipt` ENABLE KEYS */;
-- 导出 表 fw-cloud-pay.t_pay_mch_info 结构
DROP TABLE IF EXISTS `t_pay_mch_info`;
CREATE TABLE IF NOT EXISTS `t_pay_mch_info` (
`id` bigint(11) NOT NULL AUTO_INCREMENT,
`mch_id` varchar(32) NOT NULL COMMENT '商户ID',
`mch_name` varchar(32) NOT NULL COMMENT '名称',
`type` varchar(24) NOT NULL COMMENT '类型',
`req_key` varchar(128) NOT NULL COMMENT '请求私钥',
`res_key` varchar(128) NOT NULL COMMENT '响应私钥',
`statu` smallint(1) NOT NULL DEFAULT '1' COMMENT '商户状态,0-停止使用,1-使用中',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `index_t_mch_info_mch_id` (`mch_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='商户信息表';
-- 正在导出表 fw-cloud-pay.t_pay_mch_info 的数据:~1 rows (大约)
DELETE FROM `t_pay_mch_info`;
/*!40000 ALTER TABLE `t_pay_mch_info` DISABLE KEYS */;
INSERT INTO `t_pay_mch_info` (`id`, `mch_id`, `mch_name`, `type`, `req_key`, `res_key`, `statu`, `create_time`, `update_time`) VALUES
(1, '10000001', '广东xxxxx', '1', 'REQKEY_xxxxxx', 'RESKEY_xxxxx', 1, '2018-03-19 11:07:55', '2018-05-16 13:42:19');
/*!40000 ALTER TABLE `t_pay_mch_info` ENABLE KEYS */;
-- 导出 表 fw-cloud-pay.t_pay_mch_notify 结构
DROP TABLE IF EXISTS `t_pay_mch_notify`;
CREATE TABLE IF NOT EXISTS `t_pay_mch_notify` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`order_id` varchar(32) NOT NULL COMMENT '订单ID',
`mch_id` varchar(32) NOT NULL COMMENT '商户ID',
`mch_order_no` varchar(32) NOT NULL COMMENT '商户订单号',
`order_type` varchar(8) NOT NULL COMMENT '订单类型:1-支付,2-转账,3-退款',
`notify_url` varchar(2048) NOT NULL COMMENT '通知地址',
`notify_count` smallint(1) NOT NULL DEFAULT '0' COMMENT '通知次数',
`result` varchar(2048) DEFAULT NULL COMMENT '通知响应结果',
`status` smallint(1) NOT NULL DEFAULT '1' COMMENT '通知状态,1-通知中,2-通知成功,3-通知失败',
`last_notify_time` datetime DEFAULT NULL COMMENT '最后一次通知时间',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `index_mchid_ordertype_mchorderno` (`mch_id`,`order_type`,`mch_order_no`),
UNIQUE KEY `index_notify_orderid` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商户通知表';
-- 正在导出表 fw-cloud-pay.t_pay_mch_notify 的数据:~0 rows (大约)
DELETE FROM `t_pay_mch_notify`;
/*!40000 ALTER TABLE `t_pay_mch_notify` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_pay_mch_notify` ENABLE KEYS */;
-- 导出 表 fw-cloud-pay.t_pay_order 结构
DROP TABLE IF EXISTS `t_pay_order`;
CREATE TABLE IF NOT EXISTS `t_pay_order` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`pay_order_id` varchar(32) NOT NULL COMMENT '支付订单号',
`mch_id` varchar(32) NOT NULL COMMENT '商户ID',
`mch_order_no` varchar(32) NOT NULL COMMENT '商户订单号',
`channel_id` varchar(32) NOT NULL COMMENT '渠道ID',
`amount` bigint(20) NOT NULL COMMENT '支付金额,单位分',
`currency` varchar(3) NOT NULL DEFAULT 'cny' COMMENT '三位货币代码,人民币:cny',
`status` smallint(1) NOT NULL DEFAULT '0' COMMENT '支付状态,0-订单生成,1-支付中(目前未使用),2-支付成功,3-业务处理完成',
`ip` varchar(32) DEFAULT NULL COMMENT '客户端IP',
`device` varchar(64) DEFAULT NULL COMMENT '设备',
`subject` varchar(64) NOT NULL COMMENT '商品标题',
`body` varchar(256) NOT NULL COMMENT '商品描述信息',
`extra` varchar(512) DEFAULT NULL COMMENT '特定渠道发起时额外参数',
`channel_mch_id` varchar(32) NOT NULL COMMENT '渠道商户ID',
`channel_order_no` varchar(64) DEFAULT NULL COMMENT '渠道订单号',
`errcode` varchar(64) DEFAULT NULL COMMENT '渠道支付错误码',
`errmsg` varchar(128) DEFAULT NULL COMMENT '渠道支付错误描述',
`param1` varchar(64) DEFAULT NULL COMMENT '扩展参数1',
`param2` varchar(64) DEFAULT NULL COMMENT '扩展参数2',
`notify_url` varchar(128) NOT NULL COMMENT '通知地址',
`notify_count` smallint(1) NOT NULL DEFAULT '0' COMMENT '通知次数',
`last_notify_time` bigint(20) DEFAULT NULL COMMENT '最后一次通知时间',
`expire_time` bigint(20) DEFAULT NULL COMMENT '订单失效时间',
`pay_succ_time` bigint(20) DEFAULT NULL COMMENT '订单支付成功时间',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `index_payorderid` (`pay_order_id`)
) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8 COMMENT='支付订单表';
-- 正在导出表 fw-cloud-pay.t_pay_order 的数据:~0 rows (大约)
DELETE FROM `t_pay_order`;
/*!40000 ALTER TABLE `t_pay_order` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_pay_order` ENABLE KEYS */;
-- 导出 表 fw-cloud-pay.t_pay_refund_order 结构
DROP TABLE IF EXISTS `t_pay_refund_order`;
CREATE TABLE IF NOT EXISTS `t_pay_refund_order` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`refund_order_id` varchar(32) NOT NULL COMMENT '退款订单号',
`mch_refund_no` varchar(32) NOT NULL COMMENT '商户退款单号',
`mch_id` varchar(32) NOT NULL COMMENT '商户ID',
`pay_order_id` varchar(32) NOT NULL COMMENT '支付订单号',
`channel_payorderno` varchar(64) DEFAULT NULL COMMENT '渠道支付单号',
`channel_id` varchar(24) NOT NULL COMMENT '渠道ID',
`pay_amount` bigint(20) NOT NULL COMMENT '支付金额,单位分',
`refund_amount` bigint(20) NOT NULL COMMENT '退款金额,单位分',
`currency` varchar(3) NOT NULL DEFAULT 'cny' COMMENT '三位货币代码,人民币:cny',
`status` smallint(1) NOT NULL DEFAULT '0' COMMENT '退款状态:0-订单生成,1-退款中,2-退款成功,3-退款失败,4-业务处理完成',
`result` smallint(1) NOT NULL DEFAULT '0' COMMENT '退款结果:0-不确认结果,1-等待手动处理,2-确认成功,3-确认失败',
`ip` varchar(32) DEFAULT NULL COMMENT '客户端IP',
`device` varchar(64) DEFAULT NULL COMMENT '设备',
`remark` varchar(256) DEFAULT NULL COMMENT '备注',
`channel_user` varchar(32) DEFAULT NULL COMMENT '渠道用户标识,如微信openId,支付宝账号',
`user_name` varchar(24) DEFAULT NULL COMMENT '用户姓名',
`channel_mch_id` varchar(32) NOT NULL COMMENT '渠道商户ID',
`channel_order_no` varchar(32) DEFAULT NULL COMMENT '渠道订单号',
`channel_errcode` varchar(128) DEFAULT NULL COMMENT '渠道错误码',
`channel_errmsg` varchar(128) DEFAULT NULL COMMENT '渠道错误描述',
`extra` varchar(512) DEFAULT NULL COMMENT '特定渠道发起时额外参数',
`notify_url` varchar(128) NOT NULL COMMENT '通知地址',
`param1` varchar(64) DEFAULT NULL COMMENT '扩展参数1',
`param2` varchar(64) DEFAULT NULL COMMENT '扩展参数2',
`expire_time` datetime DEFAULT NULL COMMENT '订单失效时间',
`refund_succ_time` datetime DEFAULT NULL COMMENT '订单退款成功时间',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `index_mchid_mchrefundno` (`mch_id`,`mch_refund_no`),
UNIQUE KEY `index_refund_order_id` (`refund_order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='退款订单表';
-- 正在导出表 fw-cloud-pay.t_pay_refund_order 的数据:~0 rows (大约)
DELETE FROM `t_pay_refund_order`;
/*!40000 ALTER TABLE `t_pay_refund_order` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_pay_refund_order` ENABLE KEYS */;
-- 导出 表 fw-cloud-pay.t_pay_trans_order 结构
DROP TABLE IF EXISTS `t_pay_trans_order`;
CREATE TABLE IF NOT EXISTS `t_pay_trans_order` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`trans_order_id` varchar(32) NOT NULL COMMENT '转账订单号',
`mch_id` varchar(32) NOT NULL COMMENT '商户ID',
`mch_trans_no` varchar(32) NOT NULL COMMENT '商户转账单号',
`channel_id` varchar(32) NOT NULL COMMENT '渠道ID',
`amount` bigint(20) NOT NULL COMMENT '转账金额,单位分',
`currency` varchar(3) NOT NULL DEFAULT 'cny' COMMENT '三位货币代码,人民币:cny',
`status` smallint(1) NOT NULL DEFAULT '0' COMMENT '转账状态:0-订单生成,1-转账中,2-转账成功,3-转账失败,4-业务处理完成',
`result` smallint(1) NOT NULL DEFAULT '0' COMMENT '转账结果:0-不确认结果,1-等待手动处理,2-确认成功,3-确认失败',
`ip` varchar(32) DEFAULT NULL COMMENT '客户端IP',
`device` varchar(64) DEFAULT NULL COMMENT '设备',
`remark` varchar(256) DEFAULT NULL COMMENT '备注',
`channel_user` varchar(32) DEFAULT NULL COMMENT '渠道用户标识,如微信openId,支付宝账号',
`user_name` varchar(24) DEFAULT NULL COMMENT '用户姓名',
`channel_mch_id` varchar(32) NOT NULL COMMENT '渠道商户ID',
`channel_order_no` varchar(32) DEFAULT NULL COMMENT '渠道订单号',
`channel_errcode` varchar(128) DEFAULT NULL COMMENT '渠道错误码',
`channel_errmsg` varchar(128) DEFAULT NULL COMMENT '渠道错误描述',
`extra` varchar(512) DEFAULT NULL COMMENT '特定渠道发起时额外参数',
`notify_url` varchar(128) NOT NULL COMMENT '通知地址',
`param1` varchar(64) DEFAULT NULL COMMENT '扩展参数1',
`param2` varchar(64) DEFAULT NULL COMMENT '扩展参数2',
`expire_time` datetime DEFAULT NULL COMMENT '订单失效时间',
`trans_succ_time` datetime DEFAULT NULL COMMENT '订单转账成功时间',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `index_trans_order_id` (`trans_order_id`),
UNIQUE KEY `index_mch_id_mchorderno` (`mch_id`,`mch_trans_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='转账订单表';
-- 正在导出表 fw-cloud-pay.t_pay_trans_order 的数据:~0 rows (大约)
DELETE FROM `t_pay_trans_order`;
/*!40000 ALTER TABLE `t_pay_trans_order` DISABLE KEYS */;
/*!40000 ALTER TABLE `t_pay_trans_order` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
CREATE TABLE [dbo].[MembershipType] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[TenantId] INT NOT NULL,
[Name] NVARCHAR (256) NOT NULL,
[RequiredVolunteerDays] INT CONSTRAINT [DF_MembershipType_RequiredVolunteerDays] DEFAULT ((0)) NOT NULL,
CONSTRAINT [PK_MembershipType_1] PRIMARY KEY CLUSTERED ([Id] ASC),
CONSTRAINT [FK_MembershipType_Tenant] FOREIGN KEY ([TenantId]) REFERENCES [dbo].[Tenant] ([Id])
);
|
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table user_master (
user_id varchar(255) not null,
user_name varchar(255),
password varchar(255),
regist_time datetime(6) not null,
update_time datetime(6) not null,
constraint pk_user_master primary key (user_id))
;
# --- !Downs
SET FOREIGN_KEY_CHECKS=0;
drop table user_master;
SET FOREIGN_KEY_CHECKS=1;
|
SELECT "SalariesFrance_13"."REG_LIB" AS "REG_LIB", "SalariesFrance_13"."ZE2010_LIB" AS "ZE2010_LIB" FROM "SalariesFrance_13" GROUP BY 1, 2;
|
USE tempdb;
GO
IF EXISTS (SELECT 1 FROM sys.schemas WHERE name = 'STIG')
BEGIN
DROP SCHEMA STIG
END
GO
CREATE SCHEMA STIG
GO
/*
Objects defined in this file:
VIEW STIG.database_role_members
Based on the system view sys.database_role_members, this presents the list of
database role memberships using roles' and users' names rather than their id numbers.
Although membership in database roles is hierarchical, this view lists only the direct memberships.
FUNCTION STIG.database_roles_of(@database_principal sysname)
Given the name of a database principal (user or role), this table-valued function returns
a list of all the roles it belongs to, both directly and indirectly.
FUNCTION STIG.members_of_db_role(@database_role sysname)
Given the name of a database role, this table-valued function returns
a list of all the roles and users that belong to it, both directly and indirectly.
VIEW STIG.database_permissions
Based on the system view sys.database_permissions, this provides additional, descriptive material.
The list includes only those permissions explicitly granted (or denied) to a database user or role;
it does not include permissions that are implicit or inherited from a higher-level role.
Securable items that exist but have no explicit permissions assigned are included in the
list, with the columns that describe the grantor and grantee left null.
FUNCTION STIG.database_effective_permissions(@Grantee sysname)
Given the name of a database principal (user or role), this table-valued function
returns information about permissions granted (or denied) to that user or database role,
either directly or inherited from a higher-level role.
VIEW STIG.server_role_members
Based on the system view sys.server_role_members, this presents the list of
server role memberships using roles' and users' names rather than their id numbers.
Although membership in server roles is hierarchical, this view lists only the direct memberships.
FUNCTION STIG.server_roles_of(@server_principal sysname)
Given the name of a server principal (login or role), this table-valued function returns
a list of all the roles it belongs to, both directly and indirectly.
FUNCTION STIG.members_of_server_role(@server_role sysname)
Given the name of a server role, this table-valued function returns
a list of all the roles and logins that belong to it, both directly and indirectly.
VIEW STIG.server_permissions
Based on the system view sys.server_permissions, this provides additional, descriptive material.
The list includes only those permissions explicitly granted (or denied) to a server login or role;
it does not include permissions that are implicit or inherited from a higher-level role.
Securable items that exist but have no explicit permissions assigned are included in the
list, with columns describing the grantor and grantee left null.
FUNCTION STIG.server_effective_permissions(@Grantee sysname)
Given the name of a server principal (login or server role), this table-valued function
returns information about permissions granted (or denied) to that login or role,
either directly or inherited from a higher-level role.
*/
BEGIN TRY DROP VIEW STIG.database_role_members END TRY BEGIN CATCH END CATCH;
GO
CREATE VIEW STIG.database_role_members
-- Based on the system view sys.database_role_members, this presents the list of
-- database role memberships using roles' and users' names rather than their id numbers.
-- Although membership in database roles is hierarchical, this view lists only the direct memberships.
AS SELECT
R.name AS [Role],
M.name AS [Member]
FROM
<TARGETDB>.sys.database_role_members X
INNER JOIN <TARGETDB>.sys.database_principals R ON R.principal_id = X.role_principal_id
INNER JOIN <TARGETDB>.sys.database_principals M ON M.principal_id = X.member_principal_id
;
GO
BEGIN TRY DROP FUNCTION STIG.database_roles_of END TRY BEGIN CATCH END CATCH;
GO
CREATE FUNCTION STIG.database_roles_of(@database_principal sysname)
-- Membership in database roles is hierarchical.
-- Given the name of a database principal (user or role), this table-valued function returns
-- a list of all the roles it belongs to, both directly and indirectly.
RETURNS @T TABLE
(
[Member] sysname,
[Role] sysname,
[via Member] sysname,
[Membership Chain] nvarchar(max)
)
AS BEGIN;
WITH Membership AS
(
SELECT
[Member] AS [Member],
[Role],
[Member] AS [via Member],
CAST([Member] AS varchar(max)) + ' < ' + CAST([Role] AS varchar(max)) AS [Membership Chain]
FROM
STIG.database_role_members
WHERE
[Member] = @database_principal
UNION ALL
SELECT
X.[Member],
R.[Role],
R.[Member] AS [via Member],
X.[Membership Chain] + ' < ' + CAST(R.[Role] AS varchar(max)) AS [Membership Chain]
FROM
Membership X
INNER JOIN STIG.database_role_members R ON X.[Role] = R.[Member]
)
INSERT INTO @T SELECT * FROM Membership;
ExitFunction:
RETURN;
END;
GO
BEGIN TRY DROP FUNCTION STIG.members_of_db_role END TRY BEGIN CATCH END CATCH;
GO
CREATE FUNCTION STIG.members_of_db_role(@database_role sysname)
-- Membership in database roles is hierarchical.
-- Given the name of a database role, this table-valued function returns
-- a list of all the roles and users that belong to it, both directly and indirectly.
RETURNS @T TABLE
(
[Role] sysname,
[Member] sysname,
[via Role] sysname,
[Membership Chain] nvarchar(max)
)
AS BEGIN;
WITH Membership AS
(
SELECT
[Role] AS [Role],
[Member],
[Role] AS [via Role],
CAST([Role] AS varchar(max)) + ' > ' + CAST([Member] AS varchar(max)) AS [Membership Chain]
FROM
STIG.database_role_members
WHERE
[Role] = @database_role
UNION ALL
SELECT
X.[Role] AS [Role],
R.[Member],
R.[Role] AS [via Role],
X.[Membership Chain] + ' > ' + CAST(R.[Member] AS varchar(max)) AS [Membership Chain]
FROM
Membership X
INNER JOIN STIG.database_role_members R ON X.[Member] = R.[Role]
)
INSERT INTO @T SELECT * FROM Membership;
ExitFunction:
RETURN;
END;
GO
BEGIN TRY DROP VIEW STIG.database_permissions END TRY BEGIN CATCH END CATCH;
GO
CREATE VIEW STIG.database_permissions
-- Based on the system view sys.database_permissions, this provides additional, descriptive material.
-- The list includes only those permissions explicitly granted (or denied) to a database user or role;
-- it does not include permissions that are implicit or inherited from a higher-level role.
-- Securable items that exist but have no explicit permissions assigned are included in the
-- list, with the columns that describe the grantor and grantee left null.
AS SELECT DISTINCT
@@SERVERNAME AS [Current Server],
@@SERVICENAME AS [Current Instance],
'<TARGETDB>' AS [Current DB],
SYSTEM_USER AS [Current Login],
USER AS [Current User],
CASE
WHEN DP.class_desc = 'OBJECT_OR_COLUMN' THEN CASE WHEN DP.minor_id > 0 THEN 'COLUMN' ELSE OB.type_desc END
WHEN DP.class_desc IS NOT NULL THEN DP.class_desc
WHEN DP.class_desc IS NULL AND DB.name IS NOT NULL THEN 'DATABASE'
WHEN DP.class_desc IS NULL AND OB.name IS NOT NULL THEN 'OBJECT_OR_COLUMN'
WHEN DP.class_desc IS NULL AND SC.name IS NOT NULL THEN 'SCHEMA'
WHEN DP.class_desc IS NULL AND PR.name IS NOT NULL THEN 'DATABASE_PRINCIPAL'
WHEN DP.class_desc IS NULL AND AY.name IS NOT NULL THEN 'ASSEMBLY'
WHEN DP.class_desc IS NULL AND TP.name IS NOT NULL THEN 'TYPE'
WHEN DP.class_desc IS NULL AND XS.name IS NOT NULL THEN 'XML_SCHEMA_COLLECTION'
WHEN DP.class_desc IS NULL AND MT.name IS NOT NULL THEN 'MESSAGE_TYPE'
WHEN DP.class_desc IS NULL AND VC.name IS NOT NULL THEN 'SERVICE_CONTRACT'
WHEN DP.class_desc IS NULL AND SV.name IS NOT NULL THEN 'SERVICE'
WHEN DP.class_desc IS NULL AND RS.name IS NOT NULL THEN 'REMOTE_SERVICE_BINDING'
WHEN DP.class_desc IS NULL AND RT.name IS NOT NULL THEN 'ROUTE'
WHEN DP.class_desc IS NULL AND FT.name IS NOT NULL THEN 'FULLTEXT_CATALOG'
WHEN DP.class_desc IS NULL AND SK.name IS NOT NULL THEN 'SYMMETRIC_KEY'
WHEN DP.class_desc IS NULL AND AK.name IS NOT NULL THEN 'ASYMMETRIC_KEY'
WHEN DP.class_desc IS NULL AND CT.name IS NOT NULL THEN 'CERTIFICATE'
ELSE NULL
END AS [Securable Type or Class],
CASE
WHEN DP.class_desc = 'DATABASE' THEN PS.name
WHEN DP.class_desc = 'OBJECT_OR_COLUMN' THEN schema_name(OB.schema_id)
WHEN DP.class_desc = 'SCHEMA' THEN P3.name
WHEN DP.class_desc = 'DATABASE_PRINCIPAL' THEN coalesce(PR.default_schema_name, PE.name)
WHEN DP.class_desc = 'ASSEMBLY' THEN P4.name
WHEN DP.class_desc = 'TYPE' THEN schema_name(TP.schema_id)
WHEN DP.class_desc = 'XML_SCHEMA_COLLECTION' THEN schema_name(XS.schema_id)
WHEN DP.class_desc = 'MESSAGE_TYPE' THEN P5.name
WHEN DP.class_desc = 'SERVICE_CONTRACT' THEN P6.name
WHEN DP.class_desc = 'SERVICE' THEN P7.name
WHEN DP.class_desc = 'REMOTE_SERVICE_BINDING' THEN P8.name
WHEN DP.class_desc = 'ROUTE' THEN P9.name
WHEN DP.class_desc = 'FULLTEXT_CATALOG' THEN PA.name
WHEN DP.class_desc = 'SYMMETRIC_KEY' THEN PB.name
WHEN DP.class_desc = 'ASYMMETRIC_KEY' THEN PC.name
WHEN DP.class_desc = 'CERTIFICATE' THEN PD.name
WHEN DP.class_desc IS NULL AND DB.name IS NOT NULL THEN PS.name
WHEN DP.class_desc IS NULL AND OB.name IS NOT NULL THEN schema_name(OB.schema_id)
WHEN DP.class_desc IS NULL AND SC.name IS NOT NULL THEN P3.name
WHEN DP.class_desc IS NULL AND PR.name IS NOT NULL THEN PR.default_schema_name
WHEN DP.class_desc IS NULL AND AY.name IS NOT NULL THEN P4.name
WHEN DP.class_desc IS NULL AND TP.name IS NOT NULL THEN schema_name(TP.schema_id)
WHEN DP.class_desc IS NULL AND XS.name IS NOT NULL THEN schema_name(XS.schema_id)
WHEN DP.class_desc IS NULL AND MT.name IS NOT NULL THEN P5.name
WHEN DP.class_desc IS NULL AND VC.name IS NOT NULL THEN P6.name
WHEN DP.class_desc IS NULL AND SV.name IS NOT NULL THEN P7.name
WHEN DP.class_desc IS NULL AND RS.name IS NOT NULL THEN P8.name
WHEN DP.class_desc IS NULL AND RT.name IS NOT NULL THEN P9.name
WHEN DP.class_desc IS NULL AND FT.name IS NOT NULL THEN PA.name
WHEN DP.class_desc IS NULL AND SK.name IS NOT NULL THEN PB.name
WHEN DP.class_desc IS NULL AND AK.name IS NOT NULL THEN PC.name
WHEN DP.class_desc IS NULL AND CT.name IS NOT NULL THEN PD.name
ELSE NULL
END AS [Schema/Owner],
CASE
WHEN DP.class_desc = 'DATABASE' THEN DB.name
WHEN DP.class_desc = 'OBJECT_OR_COLUMN' THEN OB.name
WHEN DP.class_desc = 'SCHEMA' THEN SC.name
WHEN DP.class_desc = 'DATABASE_PRINCIPAL' THEN PR.name
WHEN DP.class_desc = 'ASSEMBLY' THEN AY.name
WHEN DP.class_desc = 'TYPE' THEN TP.name
WHEN DP.class_desc = 'XML_SCHEMA_COLLECTION' THEN XS.name
WHEN DP.class_desc = 'MESSAGE_TYPE' THEN cast(MT.name as sql_variant)
WHEN DP.class_desc = 'SERVICE_CONTRACT' THEN cast(VC.name as sql_variant)
WHEN DP.class_desc = 'SERVICE' THEN cast(SV.name as sql_variant)
WHEN DP.class_desc = 'REMOTE_SERVICE_BINDING' THEN RS.name
WHEN DP.class_desc = 'ROUTE' THEN RT.name
WHEN DP.class_desc = 'FULLTEXT_CATALOG' THEN FT.name
WHEN DP.class_desc = 'SYMMETRIC_KEY' THEN SK.name
WHEN DP.class_desc = 'ASYMMETRIC_KEY' THEN AK.name
WHEN DP.class_desc = 'CERTIFICATE' THEN CT.name
WHEN DP.class_desc IS NULL AND DB.name IS NOT NULL THEN DB.name
WHEN DP.class_desc IS NULL AND OB.name IS NOT NULL THEN OB.name
WHEN DP.class_desc IS NULL AND SC.name IS NOT NULL THEN SC.name
WHEN DP.class_desc IS NULL AND PR.name IS NOT NULL THEN PR.name
WHEN DP.class_desc IS NULL AND AY.name IS NOT NULL THEN AY.name
WHEN DP.class_desc IS NULL AND TP.name IS NOT NULL THEN TP.name
WHEN DP.class_desc IS NULL AND XS.name IS NOT NULL THEN XS.name
WHEN DP.class_desc IS NULL AND MT.name IS NOT NULL THEN cast(MT.name as sql_variant)
WHEN DP.class_desc IS NULL AND VC.name IS NOT NULL THEN cast(VC.name as sql_variant)
WHEN DP.class_desc IS NULL AND SV.name IS NOT NULL THEN cast(SV.name as sql_variant)
WHEN DP.class_desc IS NULL AND RS.name IS NOT NULL THEN RS.name
WHEN DP.class_desc IS NULL AND RT.name IS NOT NULL THEN RT.name
WHEN DP.class_desc IS NULL AND FT.name IS NOT NULL THEN FT.name
WHEN DP.class_desc IS NULL AND SK.name IS NOT NULL THEN SK.name
WHEN DP.class_desc IS NULL AND AK.name IS NOT NULL THEN AK.name
WHEN DP.class_desc IS NULL AND CT.name IS NOT NULL THEN CT.name
ELSE NULL
END AS [Securable],
CM.name AS [Column],
P1.type_desc AS [Grantee Type],
P1.name AS [Grantee],
DP.permission_name AS [Permission],
DP.state_desc AS [State],
P2.name AS [Grantor],
P2.type_desc AS [Grantor Type],
CASE
WHEN DP.class_desc = 'DATABASE' THEN 'sys.databases'
WHEN DP.class_desc = 'OBJECT_OR_COLUMN' THEN 'sys.all_objects'
WHEN DP.class_desc = 'SCHEMA' THEN 'sys.schemas'
WHEN DP.class_desc = 'DATABASE_PRINCIPAL' THEN 'sys.database_principals'
WHEN DP.class_desc = 'ASSEMBLY' THEN 'sys.assemblies'
WHEN DP.class_desc = 'TYPE' THEN 'sys.types'
WHEN DP.class_desc = 'XML_SCHEMA_COLLECTION' THEN 'sys.xml_schema_collections'
WHEN DP.class_desc = 'MESSAGE_TYPE' THEN 'sys.service_message_types'
WHEN DP.class_desc = 'SERVICE_CONTRACT' THEN 'sys.database_principals'
WHEN DP.class_desc = 'SERVICE' THEN 'sys.services'
WHEN DP.class_desc = 'REMOTE_SERVICE_BINDING' THEN 'sys.remote_service_bindings'
WHEN DP.class_desc = 'ROUTE' THEN 'sys.routes'
WHEN DP.class_desc = 'FULLTEXT_CATALOG' THEN 'sys.database_principals'
WHEN DP.class_desc = 'SYMMETRIC_KEY' THEN 'sys.symmetric_keys'
WHEN DP.class_desc = 'ASYMMETRIC_KEY' THEN 'sys.asymmetric_keys'
WHEN DP.class_desc = 'CERTIFICATE' THEN 'sys.certificates'
WHEN DP.class_desc IS NULL AND DB.name IS NOT NULL THEN 'sys.databases'
WHEN DP.class_desc IS NULL AND OB.name IS NOT NULL THEN 'sys.all_objects'
WHEN DP.class_desc IS NULL AND SC.name IS NOT NULL THEN 'sys.schemas'
WHEN DP.class_desc IS NULL AND PR.name IS NOT NULL THEN 'sys.database_principals'
WHEN DP.class_desc IS NULL AND AY.name IS NOT NULL THEN 'sys.assemblies'
WHEN DP.class_desc IS NULL AND TP.name IS NOT NULL THEN 'sys.types'
WHEN DP.class_desc IS NULL AND XS.name IS NOT NULL THEN 'sys.xml_schema_collections'
WHEN DP.class_desc IS NULL AND MT.name IS NOT NULL THEN 'sys.service_message_types'
WHEN DP.class_desc IS NULL AND VC.name IS NOT NULL THEN 'sys.database_principals'
WHEN DP.class_desc IS NULL AND SV.name IS NOT NULL THEN 'sys.services'
WHEN DP.class_desc IS NULL AND RS.name IS NOT NULL THEN 'sys.remote_service_bindings'
WHEN DP.class_desc IS NULL AND RT.name IS NOT NULL THEN 'sys.routes'
WHEN DP.class_desc IS NULL AND FT.name IS NOT NULL THEN 'sys.database_principals'
WHEN DP.class_desc IS NULL AND SK.name IS NOT NULL THEN 'sys.symmetric_keys'
WHEN DP.class_desc IS NULL AND AK.name IS NOT NULL THEN 'sys.asymmetric_keys'
WHEN DP.class_desc IS NULL AND CT.name IS NOT NULL THEN 'sys.certificates'
ELSE '<TARGETDB>.sys.database_permissions'
END AS [Source View]
FROM
<TARGETDB>.sys.database_permissions DP
LEFT OUTER JOIN <TARGETDB>.sys.database_principals P1
ON P1.principal_id = DP.grantee_principal_id
LEFT OUTER JOIN <TARGETDB>.sys.database_principals P2
ON P2.principal_id = DP.grantor_principal_id
FULL OUTER JOIN <TARGETDB>.sys.databases DB
ON DB.database_id = db_id(db_name(DP.major_id))
AND DP.class_desc = 'DATABASE'
LEFT OUTER JOIN <TARGETDB>.sys.server_principals PS
ON PS.sid = DB.owner_sid
FULL OUTER JOIN <TARGETDB>.sys.all_objects OB
ON DP.major_id = OB.[object_id]
AND DP.class_desc = 'OBJECT_OR_COLUMN'
LEFT OUTER JOIN <TARGETDB>.sys.all_columns CM
ON CM.[object_id] = DP.major_id
AND CM.[column_id] = DP.minor_id
FULL OUTER JOIN <TARGETDB>.sys.schemas SC
ON DP.major_id = SC.[schema_id]
AND DP.class_desc = 'SCHEMA'
LEFT OUTER JOIN <TARGETDB>.sys.database_principals P3
ON P3.principal_id = SC.principal_id
FULL OUTER JOIN <TARGETDB>.sys.database_principals PR
ON DP.major_id = PR.principal_id
AND DP.class_desc = 'DATABASE_PRINCIPAL'
LEFT OUTER JOIN <TARGETDB>.sys.database_principals PE
ON PE.principal_id = PR.owning_principal_id
FULL OUTER JOIN <TARGETDB>.sys.assemblies AY
ON DP.major_id = AY.assembly_id
AND DP.class_desc = 'ASSEMBLY'
LEFT OUTER JOIN <TARGETDB>.sys.database_principals P4
ON P4.principal_id = AY.principal_id
FULL OUTER JOIN <TARGETDB>.sys.types TP
ON DP.major_id = TP.user_type_id
AND DP.class_desc = 'TYPE'
FULL OUTER JOIN <TARGETDB>.sys.xml_schema_collections XS
ON DP.major_id = XS.xml_collection_id
AND DP.class_desc = 'XML_SCHEMA_COLLECTION'
FULL OUTER JOIN <TARGETDB>.sys.service_message_types MT
ON DP.major_id = MT.message_type_id
AND DP.class_desc = 'MESSAGE_TYPE'
LEFT OUTER JOIN <TARGETDB>.sys.database_principals P5
ON P5.principal_id = MT.principal_id
FULL OUTER JOIN <TARGETDB>.sys.service_contracts VC
ON DP.major_id = VC.service_contract_id
AND DP.class_desc = 'SERVICE_CONTRACT'
LEFT OUTER JOIN <TARGETDB>.sys.database_principals P6
ON P6.principal_id = VC.principal_id
FULL OUTER JOIN <TARGETDB>.sys.services SV
ON DP.major_id = SV.service_id
AND DP.class_desc = 'SERVICE'
LEFT OUTER JOIN <TARGETDB>.sys.database_principals P7
ON P7.principal_id = SV.principal_id
FULL OUTER JOIN <TARGETDB>.sys.remote_service_bindings RS
ON DP.major_id = RS.remote_service_binding_id
AND DP.class_desc = 'REMOTE_SERVICE_BINDING'
LEFT OUTER JOIN <TARGETDB>.sys.database_principals P8
ON P8.principal_id = RS.principal_id
FULL OUTER JOIN <TARGETDB>.sys.routes RT
ON DP.major_id = RT.route_id
AND DP.class_desc = 'ROUTE'
LEFT OUTER JOIN <TARGETDB>.sys.database_principals P9
ON P9.principal_id = RT.principal_id
FULL OUTER JOIN <TARGETDB>.sys.fulltext_catalogs FT
ON DP.major_id = FT.fulltext_catalog_id
AND DP.class_desc = 'FULLTEXT_CATALOG'
LEFT OUTER JOIN <TARGETDB>.sys.database_principals PA
ON PA.principal_id = FT.principal_id
FULL OUTER JOIN <TARGETDB>.sys.symmetric_keys SK
ON DP.major_id = SK.symmetric_key_id
AND DP.class_desc = 'SYMMETRIC_KEY'
LEFT OUTER JOIN <TARGETDB>.sys.database_principals PB
ON PB.principal_id = SK.principal_id
FULL OUTER JOIN <TARGETDB>.sys.asymmetric_keys AK
ON DP.major_id = AK.asymmetric_key_id
AND DP.class_desc = 'ASYMMETRIC_KEY'
LEFT OUTER JOIN <TARGETDB>.sys.database_principals PC
ON PC.principal_id = AK.principal_id
FULL OUTER JOIN <TARGETDB>.sys.certificates CT
ON DP.major_id = CT.certificate_id
AND DP.class_desc = 'CERTIFICATE'
LEFT OUTER JOIN <TARGETDB>.sys.database_principals PD
ON PD.principal_id = CT.principal_id
;
GO
BEGIN TRY DROP FUNCTION STIG.database_effective_permissions END TRY BEGIN CATCH END CATCH;
GO
CREATE FUNCTION STIG.database_effective_permissions(@Grantee sysname)
-- Given the name of a database principal (user or role), this table-valued function
-- returns information about permissions granted (or denied) to that user or database role,
-- either directly or inherited from a higher-level role.
RETURNS @T TABLE
(
[Current Server] sysname null,
[Current Instance] sysname null,
[Current DB] sysname null,
[Current Login] sysname null,
[Current User] sysname null,
[Securable Type or Class] nvarchar(60) null,
[Schema/Owner] sysname null,
[Securable] sql_variant null,
[Column] sysname null,
[Effective Grantee] sysname null,
[Membership Chain] nvarchar(max) null,
[Direct Grantee] sysname null,
[Direct Grantee Type] nvarchar(60) null,
[Permission] sysname null,
[State] nvarchar(60) null,
[Grantor] sysname null,
[Grantor Type] nvarchar(60) null,
[source view] sysname null
)
AS BEGIN;
WITH Targets AS
(
SELECT [Role] AS [Principal], [Membership Chain], len([Membership Chain]) AS [Membership Chain Length] FROM STIG.database_roles_of(@Grantee)
UNION ALL
SELECT @Grantee AS [Principal], @Grantee AS [Membership Chain], len(@Grantee) AS [Membership Chain Length]
)
INSERT INTO @T
SELECT TOP 100000000
P.[Current Server],
P.[Current Instance],
P.[Current DB],
P.[Current Login],
P.[Current User],
P.[Securable Type or Class],
P.[Schema/Owner],
P.[Securable],
P.[Column],
@Grantee AS [Effective Grantee],
T.[Membership Chain] AS [Membership Chain],
P.[Grantee] AS [Direct Grantee],
P.[Grantee Type] AS [Direct Grantee Type],
P.[Permission],
P.[State],
P.[Grantor],
P.[Grantor Type],
P.[Source View]
FROM
STIG.database_permissions P
INNER JOIN Targets T ON T.[Principal] = P.[Grantee]
ORDER BY
P.[Securable Type or Class],
P.[Schema/Owner],
P.[Securable],
P.[Column],
T.[Membership Chain Length]
;
UPDATE T
SET [State] = [State] + ' (schema denied)'
FROM @T T
WHERE
T.[State] <> 'DENY'
AND T.[Securable Type or Class] <> 'SCHEMA'
AND 0 <
(
SELECT count(*) FROM @T X
WHERE
X.[Securable Type or Class] = 'SCHEMA'
AND X.[Securable] = T.[Schema/Owner]
AND X.[Permission] = T.[Permission]
AND X.[State] = 'DENY'
)
;
UPDATE T
SET [State] = [State] + ' (denied)'
FROM @T T
WHERE
T.[State] <> 'DENY'
AND 0 <
(
SELECT count(*) FROM @T X
WHERE
X.[Securable Type or Class] = T.[Securable Type or Class]
AND X.[Schema/Owner] = T.[Schema/Owner]
AND X.[Securable] = T.[Securable]
AND (X.[Column] = T.[Column] OR (X.[Column] IS NULL) AND (T.[Column] IS NULL))
AND X.[Permission] = T.[Permission]
AND X.[State] = 'DENY'
)
;
UPDATE T
SET [State] = [State] + ' (column(s) denied)'
FROM @T T
WHERE T.[Securable Type or Class] <> 'COLUMN'
AND 0 <
(
SELECT count(*) FROM @T X
WHERE
X.[Securable Type or Class] = 'COLUMN'
AND X.[Schema/Owner] = T.[Schema/Owner]
AND X.[Securable] = T.[Securable]
AND X.[Permission] = T.[Permission]
AND X.[State] = 'DENY'
)
;
ExitFunction:
RETURN;
END;
GO
BEGIN TRY DROP VIEW STIG.server_role_members END TRY BEGIN CATCH END CATCH;
GO
CREATE VIEW STIG.server_role_members
-- Based on the system view sys.server_role_members, this presents the list of
-- server role memberships using roles' and logins' names rather than their id numbers.
-- Although membership in server roles is hierarchical, this view lists only the direct memberships.
AS SELECT
R.name AS [Role],
M.name AS [Member]
FROM
<TARGETDB>.sys.server_role_members X
INNER JOIN <TARGETDB>.sys.server_principals R ON R.principal_id = X.role_principal_id
INNER JOIN <TARGETDB>.sys.server_principals M ON M.principal_id = X.member_principal_id
;
GO
BEGIN TRY DROP FUNCTION STIG.server_roles_of END TRY BEGIN CATCH END CATCH;
GO
CREATE FUNCTION STIG.server_roles_of(@server_principal sysname)
-- Membership in server roles is hierarchical.
-- Given the name of a server principal (login or role), this table-valued function returns
-- a list of all the roles it belongs to, both directly and indirectly.
RETURNS @T TABLE
(
[Member] sysname,
[Role] sysname,
[via Member] sysname,
[Membership Chain] nvarchar(max)
)
AS BEGIN;
WITH Membership AS
(
SELECT
[Member] AS [Member],
[Role],
[Member] AS [via Member],
CAST([Member] AS varchar(max)) + ' < ' + CAST([Role] AS varchar(max)) AS [Membership Chain]
FROM
STIG.server_role_members
WHERE
[Member] = @server_principal
UNION ALL
SELECT
X.[Member],
R.[Role],
R.[Member] AS [via Member],
X.[Membership Chain] + ' < ' + CAST(R.[Role] AS varchar(max)) AS [Membership Chain]
FROM
Membership X
INNER JOIN STIG.server_role_members R ON X.[Role] = R.[Member]
)
INSERT INTO @T SELECT * FROM Membership;
ExitFunction:
RETURN;
END;
GO
BEGIN TRY DROP FUNCTION STIG.members_of_server_role END TRY BEGIN CATCH END CATCH;
GO
CREATE FUNCTION STIG.members_of_server_role(@server_role sysname)
-- Membership in server roles is hierarchical.
-- Given the name of a server role, this table-valued function returns
-- a list of all the roles and logins that belong to it, both directly and indirectly.
RETURNS @T TABLE
(
[Role] sysname,
[Member] sysname,
[via Role] sysname,
[Membership Chain] nvarchar(max)
)
AS BEGIN;
WITH Membership AS
(
SELECT
[Role] AS [Role],
[Member],
[Role] AS [via Role],
CAST([Role] AS varchar(max)) + ' > ' + CAST([Member] AS varchar(max)) AS [Membership Chain]
FROM
STIG.server_role_members
WHERE
[Role] = @server_role
UNION ALL
SELECT
X.[Role] AS [Role],
R.[Member],
R.[Role] AS [via Role],
X.[Membership Chain] + ' > ' + CAST(R.[Member] AS varchar(max)) AS [Membership Chain]
FROM
Membership X
INNER JOIN STIG.server_role_members R ON X.[Member] = R.[Role]
)
INSERT INTO @T SELECT * FROM Membership;
ExitFunction:
RETURN;
END;
GO
BEGIN TRY DROP VIEW STIG.server_permissions END TRY BEGIN CATCH END CATCH;
GO
CREATE VIEW STIG.server_permissions
-- Based on the system view sys.server_permissions, this provides additional, descriptive material.
-- The list includes only those permissions explicitly granted (or denied) to a server login or role;
-- it does not include permissions that are implicit or inherited from a higher-level role.
-- Securable items that exist but have no explicit permissions assigned are included in the
-- list, with columns describing the grantor and grantee left null.
AS SELECT DISTINCT
@@SERVERNAME AS [Current Server],
@@SERVICENAME AS [Current Instance],
'<TARGETDB>' AS [Current DB],
SYSTEM_USER AS [Current Login],
USER AS [Current User],
CASE
WHEN SP.class_desc IS NOT NULL THEN
CASE
WHEN SP.class_desc = 'SERVER' AND S.is_linked = 0 THEN 'SERVER'
WHEN SP.class_desc = 'SERVER' AND S.is_linked = 1 THEN 'SERVER (linked)'
ELSE SP.class_desc
END
WHEN E.name IS NOT NULL THEN 'ENDPOINT'
WHEN S.name IS NOT NULL AND S.is_linked = 0 THEN 'SERVER'
WHEN S.name IS NOT NULL AND S.is_linked = 1 THEN 'SERVER (linked)'
WHEN P.name IS NOT NULL THEN 'SERVER_PRINCIPAL'
ELSE '???'
END AS [Securable Class],
CASE
WHEN E.name IS NOT NULL THEN E.name
WHEN S.name IS NOT NULL THEN S.name
WHEN P.name IS NOT NULL THEN P.name
ELSE '???'
END AS [Securable],
P1.name AS [Grantee],
P1.type_desc AS [Grantee Type],
SP.permission_name AS [Permission],
SP.state_desc AS [State],
P2.name AS [Grantor],
P2.type_desc AS [Grantor Type],
CASE
WHEN SP.class_desc = 'SERVER' THEN 'sys.servers'
WHEN SP.class_desc = 'ENDPOINT' THEN 'sys.endpoints'
WHEN SP.class_desc = 'SERVER_PRINCIPAL' THEN 'sys.server_principals'
WHEN SP.class_desc IS NULL AND S.name IS NOT NULL THEN 'sys.servers'
WHEN SP.class_desc IS NULL AND E.name IS NOT NULL THEN 'sys.endpoints'
WHEN SP.class_desc IS NULL AND P.name IS NOT NULL THEN 'sys.server_principals'
ELSE 'sys.server_permissions'
END AS [Source View]
FROM
<TARGETDB>.sys.server_permissions SP
INNER JOIN <TARGETDB>.sys.server_principals P1
ON P1.principal_id = SP.grantee_principal_id
INNER JOIN <TARGETDB>.sys.server_principals P2
ON P2.principal_id = SP.grantor_principal_id
FULL OUTER JOIN sys.servers S
ON SP.class_desc = 'SERVER'
AND S.server_id = SP.major_id
FULL OUTER JOIN <TARGETDB>.sys.endpoints E
ON SP.class_desc = 'ENDPOINT'
AND E.endpoint_id = SP.major_id
FULL OUTER JOIN <TARGETDB>.sys.server_principals P
ON SP.class_desc = 'SERVER_PRINCIPAL'
AND P.principal_id = SP.major_id
;
GO
BEGIN TRY DROP FUNCTION STIG.server_effective_permissions END TRY BEGIN CATCH END CATCH;
GO
CREATE FUNCTION STIG.server_effective_permissions(@Grantee sysname)
-- Given the name of a server principal (login or server role), this table-valued function
-- returns information about permissions granted (or denied) to that login or role,
-- either directly or inherited from a higher-level role.
RETURNS @T TABLE
(
[Current Server] sysname null,
[Current Instance] sysname null,
[Current DB] sysname null,
[Current Login] sysname null,
[Current User] sysname null,
[Securable Class] nvarchar(60) null,
[Securable] sql_variant null,
[Effective Grantee] sysname null,
[Membership Chain] nvarchar(max) null,
[Direct Grantee] sysname null,
[Direct Grantee Type] nvarchar(60) null,
[Permission] sysname null,
[State] nvarchar(60) null,
[Grantor] sysname null,
[Grantor Type] nvarchar(60) null,
[source view] sysname null
)
AS BEGIN;
WITH Targets AS
(
SELECT [Role] AS [Principal], [Membership Chain], len([Membership Chain]) AS [Membership Chain Length] FROM STIG.server_roles_of(@Grantee)
UNION ALL
SELECT @Grantee AS [Principal], @Grantee AS [Membership Chain], len(@Grantee) AS [Membership Chain Length]
)
INSERT INTO @T
SELECT TOP 100000000
P.[Current Server],
P.[Current Instance],
P.[Current DB],
P.[Current Login],
P.[Current User],
P.[Securable Class],
P.[Securable],
@Grantee AS [Effective Grantee],
T.[Membership Chain] AS [Membership Chain],
P.[Grantee] AS [Direct Grantee],
P.[Grantee Type] AS [Direct Grantee Type],
P.[Permission],
P.[State],
P.[Grantor],
P.[Grantor Type],
P.[Source View]
FROM
STIG.server_permissions P
INNER JOIN Targets T ON T.[Principal] = P.[Grantee]
ORDER BY
P.[Securable Class],
P.[Securable],
T.[Membership Chain Length]
;
UPDATE T
SET [State] = [State] + ' (denied)'
FROM @T T
WHERE
T.[State] <> 'DENY'
AND 0 <
(
SELECT count(*) FROM @T X
WHERE
X.[Securable Class] = T.[Securable Class]
AND X.[Securable] = T.[Securable]
AND X.[Permission] = T.[Permission]
AND X.[State] = 'DENY'
)
;
ExitFunction:
RETURN;
END;
GO
|
ALTER TABLE challenges
ADD class_name varchar(30);
|
-- +goose Up
-- SQL in section 'Up' is executed when this migration is applied
-- +goose StatementBegin
DROP TABLE identification_comments;
DROP TABLE citizenship_comments;
DROP TABLE financial_comments;
DROP TABLE foreign_comments;
DROP TABLE history_comments;
DROP TABLE legal_comments;
DROP TABLE military_comments;
DROP TABLE psychological_comments;
DROP TABLE relationships_comments;
DROP TABLE substance_comments;
-- +goose StatementEnd
-- +goose Down
-- SQL section 'Down' is executed when this migration is rolled back
-- +goose StatementBegin
CREATE TABLE identification_comments (
id bigint REFERENCES accounts(id) NOT NULL PRIMARY KEY,
comments_id bigint REFERENCES texts(id)
);
CREATE TABLE citizenship_comments (
id bigint REFERENCES accounts(id) NOT NULL PRIMARY KEY,
comments_id bigint REFERENCES texts(id)
);
CREATE TABLE financial_comments (
id bigint REFERENCES accounts(id) NOT NULL PRIMARY KEY,
comments_id bigint REFERENCES texts(id)
);
CREATE TABLE foreign_comments (
id bigint REFERENCES accounts(id) NOT NULL PRIMARY KEY,
comments_id bigint REFERENCES texts(id)
);
CREATE TABLE history_comments (
id bigint REFERENCES accounts(id) NOT NULL PRIMARY KEY,
comments_id bigint REFERENCES texts(id)
);
CREATE TABLE legal_comments (
id bigint REFERENCES accounts(id) NOT NULL PRIMARY KEY,
comments_id bigint REFERENCES texts(id)
);
CREATE TABLE military_comments (
id bigint REFERENCES accounts(id) NOT NULL PRIMARY KEY,
comments_id bigint REFERENCES texts(id)
);
CREATE TABLE psychological_comments (
id bigint REFERENCES accounts(id) NOT NULL PRIMARY KEY,
comments_id bigint REFERENCES texts(id)
);
CREATE TABLE relationships_comments (
id bigint REFERENCES accounts(id) NOT NULL PRIMARY KEY,
comments_id bigint REFERENCES texts(id)
);
CREATE TABLE substance_comments (
id bigint REFERENCES accounts(id) NOT NULL PRIMARY KEY,
comments_id bigint REFERENCES texts(id)
);
-- +goose StatementEnd
|
CREATE DATABASE todo_db CHARACTER SET utf8mb4;
|
DECLARE genre_name VARCHAR(100);
BEGIN
SELECT g.NAME into genre_name
FROM Track t
INNER JOIN GENRE g on t.GENREID = g.GENREID
WHERE t.TRACKID = 1;
IF (genre_name = 'Jazz')
THEN
raise_application_error(-20000, 'Playlist cannot have more than 50 tracks!');
ELSE
INSERT INTO PLAYLISTTRACK(PLAYLISTID, TRACKID)
VALUES (1, 2819);
END IF;
END;
|
-- @author: krakowiakpawel9@gmail.com
-- @site: e-smartdata.org
-- Funkcje czasu
-- CURRENT_TIME()
SELECT CURRENT_TIME('+2:00') as current_time;
-- TIME(hour, minute, second) - towrzy obiekt TIME
SELECT TIME(10, 12, 45) as time;
-- TIME_ADD(time, INTERVAL INT64 part)
SELECT
CURRENT_TIME('+2:00') as now,
TIME_ADD(CURRENT_TIME('+2:00'), INTERVAL 1 HOUR) as after_1_hour,
TIME_ADD(CURRENT_TIME('+2:00'), INTERVAL 1 MINUTE) as after_1_min,
TIME_ADD(CURRENT_TIME('+2:00'), INTERVAL 1 SECOND) as after_1_sec,
TIME_ADD(CURRENT_TIME('+2:00'), INTERVAL 1 MILLISECOND) as after_1_ms;
-- TIME_SUB(time, INTERVAL INT64 part)
SELECT
CURRENT_TIME('+2:00') as now,
TIME_SUB(CURRENT_TIME('+2:00'), INTERVAL 1 HOUR) as one_hour_ago,
TIME_SUB(CURRENT_TIME('+2:00'), INTERVAL 1 MINUTE) as one_min_ago,
TIME_SUB(CURRENT_TIME('+2:00'), INTERVAL 1 SECOND) as one_sec_ago,
TIME_SUB(CURRENT_TIME('+2:00'), INTERVAL 1 MILLISECOND) as one_ms_ago;
-- TIME_DIFF(time1, time2, part)
SELECT
TIME_DIFF(TIME '15:00:00', TIME '14:00:00', HOUR) as hour_diff,
TIME_DIFF(TIME '15:00:00', TIME '14:00:00', MINUTE) as minute_diff,
TIME_DIFF(TIME '15:00:00', TIME '14:49:20', SECOND) as sec_diff;
|
set define '&'
prompt Execute /dummy_s3_function_a.sql
@./dummy_s3_function_a.sql
prompt Execute /dummy_s3_function_b.sql
@./dummy_s3_function_b.sql
prompt Execute /dummy_s3_function_c.sql
@./dummy_s3_function_c.sql
|
SELECT *
FROM
JSON_TABLE(
'[{"a":"3"},{"a":2},{"b":1},{"a":0},{"a":[1,2]}]',
'$[*]'
COLUMNS(
rowid FOR ORDINALITY,
ac VARCHAR(100) PATH '$.a' DEFAULT '999' ON ERROR DEFAULT '111' ON EMPTY,
aj JSON PATH '$.a' DEFAULT '{"x": 333}' ON EMPTY,
bx INT EXISTS PATH '$.b'
)
) ;
select jt.* from json_table( cast( '"a"' as json), '$'
columns(
col1 char(1) path '$',
col2 int path '$'
)
) as jt;
select jt.* from json_table( cast( '1' as json), '$'
columns(
col1 char(1) path '$',
col2 int path '$'
)
) as jt;
select jt.* from json_table( cast( 11 as json), '$'
columns(
col1 char(1) path '$',
col2 int path '$'
)
) as jt;
--CBRD-22442
select jt.* from json_table( cast( 11 as json), '$'
columns(
col1 char(2) path '$',
col2 int path '$'
)
) as jt;
select jt.* from json_table( cast( 'AAAAA' as json), '$'
columns(
col1 char(1) path '$',
col2 int path '$'
)
) as jt;
select jt.* from json_table( cast( 'AAAAA' as json), '$'
columns(
col1 char(10) path '$',
col2 int path '$'
)
) as jt;
select jt.* from json_table( cast( '"AAAAA"' as json), '$'
columns( col1 char(1) path '$')) as jt;
select jt.* from json_table( cast( '"AAAAA"' as json), '$'
columns(
col1 char(1) path '$',
col2 int path '$'
)
) as jt;
--CBRD-22442
select jt.* from json_table( cast( '"AAAAA"' as json), '$'
columns(
col1 char(10) path '$',
col2 int path '$'
)
) as jt;
--CBRD-22442
select jt.* from json_table( cast( '"AAAAA"' as json), '$'
columns(
col1 char(1) path '$',
col2 int path '$'
)
) as jt;
select jt.* from json_table( '{"A":1}' , '$'
columns(
col1 char(1) path '$',
col2 int path '$'
)
) as jt;
select jt.* from json_table( 1 , '$'
columns(
col1 char(1) path '$',
col2 int path '$'
)
) as jt;
select jt.* from json_table( cast(json_pretty('{"a":1}') as json) , '$'
columns(
col1 char(1) path '$',
col2 int path '$',
col3 json path '$'
)
) as jt;
select jt.* from json_table( '{"a":1}' , '$'
columns(
col1 char(1) path '$',
col2 int path '$',
col3 json path '$'
)
) as jt;
select jt.* from json_table( '{"a":1}' , '$'
columns(
col1 char(1) path '$',
col2 int path '$.a',
col3 json path '$'
)
) as jt;
select jt.*, json_pretty(col3) from json_table( '{"a":1}' , '$'
columns(
col1 char(1) path '$',
col2 int path '$',
col3 json path '$'
)
) as jt;
--CBRD-22442
select jt.*, json_pretty(col3) from json_table( '{"a":1}' , '$'
columns(
col1 char(10) path '$',
col2 int path '$',
col3 json path '$'
)
) as jt;
select jt.* from json_table( '' , '$'
columns(
col4 int path '$'
)
) as jt;
|
insert into hotel (id, name) values (1, 'Orion');
insert into hotel (id, name) values (2, 'Taj');
insert into department (id, name, hotel_id) values (1, 'Food', 1);
insert into department (id, name, hotel_id) values (2, 'Travel', 1);
insert into department (id, name, hotel_id) values (3, 'Hospitality', 1)
insert into department (id, name, hotel_id) values (4, 'Food', 2);
insert into touch_point(id, name, department_id) values(1, 'Dining', 1);
insert into touch_point(id, name, department_id) values(2, 'Kitchen', 1);
insert into touch_point(id, name, department_id) values(3, 'Parking', 2);
insert into touch_point(id, name, department_id) values(4, 'Reception', 3);
insert into user_status (id, value) values (1,'disable');
insert into user_status (id, value) values (2,'enable');
insert into user_type (id, value) values (1, 'ROLE_ADMIN');
insert into user_type (id, value) values (2, 'ROLE_MANAGER');
insert into user_type (id, value) values (3, 'ROLE_STAFF');
insert into user(id, user_name, password, first_name, last_name, user_status_id , user_type_id, hotel_id)
values( 1, 'manmay', 'secret', 'Manmay', 'Mohanty', 1, 1, 1);
insert into user(id, user_name, password, first_name, last_name, user_status_id , user_type_id, hotel_id)
values( 2, 'mrunmay', 'secret', 'Mrunmay', 'Mohanty', 2, 1, 1);
insert into user(id, user_name, password, first_name, last_name, user_status_id , user_type_id, hotel_id)
values( 3, 'santosh', 'secret', 'Santosh', 'Kunatha', 2, 3, 1);
insert into user(id, user_name, password, first_name, last_name, user_status_id , user_type_id, hotel_id)
values( 4, 'subhash', 'secret', 'Subhash', 'Goel', 2, 2, 1);
insert into user_departments (uid, did) values (1,1);
insert into user_departments (uid, did) values (1,2);
insert into user_departments (uid, did) values (1,3);
insert into user_departments (uid, did) values (2,1);
insert into user_departments (uid, did) values (2,2);
insert into user_touch_points (uid, tid) values (1, 1);
insert into user_touch_points (uid, tid) values (1, 3);
insert into user_touch_points (uid, tid) values (2, 3);
insert into itcs_system_zone (id, zone_id, zone_name) values (1,1,'Dining');
insert into itcs_system_zone (id, zone_id, zone_name) values (2,2,'Kitchen');
insert into itcs_system_zone (id, zone_id, zone_name) values (3,3,'Parking');
insert into itcs_system_zone (id, zone_id, zone_name) values (4,4,'Reception');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (1, 1000, 1, 1.1, 1.2, '2010-04-01 00:03:10');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (2, 1000, 1, 2.1, 3.2, '2010-04-01 00:03:18');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (3, 1000, 1, 1.1, 4.2, '2010-04-01 00:03:20');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (4, 1001, 1, 3.1, 5.2, '2010-04-01 00:11:00');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (15, 1001, 3, 3.1, 5.2, '2010-04-01 00:11:10');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (16, 1001, 1, 3.1, 5.2, '2010-04-01 00:11:03');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (5, 1002, 1, 1.7, 6.2, '2010-04-01 00:05:00');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (6, 1003, 2, 8.1, 4.2, '2010-04-02 00:00:00');
-- insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (7, 1004, 2, 5.1, 3.2, '2010-04-01 00:00:00');
-- insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (8, 1005, 3, 9.1, 9.2, '2010-04-01 00:00:00');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (9, 1000, 2, 1.14, 1.24, '2010-04-01 00:08:05');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (10, 1000, 2, 1.88, 1.29, '2010-04-01 00:08:14');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (11, 1000, 3, 1.88, 1.29, '2010-04-01 00:08:17');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (12, 1000, 2, 1.88, 1.29, '2010-04-01 00:08:18');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (13, 1000, 3, 1.88, 1.29, '2010-04-01 00:08:22');
insert into itcs_tag_read (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (14, 1000, 4, 1.88, 1.29, '2010-04-01 00:08:21');
insert into itcs_tag_read_history (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (1, 1004, 2, 1.88, 1.29, '2010-04-01 00:08:21');
insert into itcs_tag_read_history (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (2, 1004, 3, 1.88, 1.29, '2010-04-01 00:09:26');
insert into itcs_tag_read_history (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (3, 1004, 4, 1.88, 1.29, '2010-04-01 00:09:31');
insert into itcs_tag_read_history (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (4, 1005, 2, 1.88, 1.29, '2010-04-01 00:08:28');
insert into itcs_tag_read_history (id, guest_card, zone_id, x_coord_read, y_coord_read, tag_read_datetime) values (5, 1005, 3, 1.88, 1.29, '2010-04-01 00:09:21');
--insert into itcs_tag_read (id, guest_card, zone) values (9, 1006, 4);
insert into guest (id, hotel_id, first_name, dob, gender, nationality_id, passport_number, preferred_name, surname, title)
values (100, 1, 'John', '1988-04-21 00:00:00', 'Male', 'Indian', 'AZ74539', 'Joe', 'Smith', 'Mr');
insert into guest (id, hotel_id, first_name, dob, gender, nationality_id, passport_number, preferred_name, surname, title)
values (101, 1, 'Jasmine', '1978-12-3 00:00:00', 'Female', 'SouthAfrican', 'AZ74539', 'Jas', 'Roy', 'Miss');
insert into guest (id, hotel_id, first_name, dob, gender, nationality_id, passport_number, preferred_name, surname, title)
values (102, 1, 'John', '1989-01-22 00:00:00', 'Male', 'American', 'JH74535', 'John', 'Karthy', 'Mr');
insert into guest (id, hotel_id, first_name, dob, gender, nationality_id, passport_number, preferred_name, surname, title)
values (103, 1, 'Robert', '1999-04-1 00:00:00', 'Male', 'Indian', 'QP74536', 'Rob', 'Alvis', 'Mr');
insert into guest (id, hotel_id, first_name, dob, gender, nationality_id, passport_number, preferred_name, surname, title)
values (104, 1, 'Pooja', '1967-08-9 00:00:00', 'Female', 'Indian', 'XL74623', 'Poo', 'Das', 'Miss');
insert into guest (id, hotel_id, first_name, dob, gender, nationality_id, passport_number, preferred_name, surname, title)
values (105, 1, 'Shreya', '1988-07-06 00:00:00', 'Female', 'SouthAfrican', 'KQ74959', 'sree', 'Bata', 'Miss');
--insert into guest_profile_detail (id, hotel_id, first_name) values (106, 1, 'guest7');
insert into card (id, mag_stripe_no) values (1000, 'Room-001');
insert into card (id, mag_stripe_no) values (1001, 'Room-002');
insert into card (id, mag_stripe_no) values (1002, 'Room-003');
insert into card (id, mag_stripe_no) values (1003, 'Room-004');
insert into card (id, mag_stripe_no) values (1004, 'Room-005');
insert into card (id, mag_stripe_no) values (1005, 'Room-006');
-- insert into card (id, mag_stripe_no) values (1006, 'Room-007');
insert into guest_card (id, card_id, guest_id, status) values (1, 1000, 100, true);
insert into guest_card (id, card_id, guest_id, status) values (2, 1001, 101, true);
insert into guest_card (id, card_id, guest_id, status) values (3, 1002, 102, true);
insert into guest_card (id, card_id, guest_id, status) values (4, 1003, 103, true);
insert into guest_card (id, card_id, guest_id, status) values (5, 1004, 104, true);
insert into guest_card (id, card_id, guest_id, status) values (6, 1005, 105, true);
-- insert into guest_card (id, card_id, guest_id) values (7, 1006, 106);
insert into guest_stay_history (id, room_id, guest_id, arrival_time, departure_time, current_stay_indicator, hotel_id) values (1, '999', 100, '2010-04-01 00:00:00', '2010-04-05 00:00:00', true, 1);
insert into guest_stay_history (id, room_id, guest_id, arrival_time, departure_time, current_stay_indicator, hotel_id) values (2, '888', 101, '2010-04-02 00:00:00', '2010-04-06 00:00:00', false, 1);
insert into guest_stay_history (id, room_id, guest_id, arrival_time, departure_time, current_stay_indicator, hotel_id) values (3, '777', 102, '2010-04-03 00:00:00', '2010-04-07 00:00:00', true, 1);
insert into guest_stay_history (id, room_id, guest_id, arrival_time, departure_time, current_stay_indicator, hotel_id) values (4, '666', 103, '2010-04-03 00:00:00', '2010-04-07 00:00:00', false , 1);
insert into guest_stay_history (id, room_id, guest_id, arrival_time, departure_time, current_stay_indicator, hotel_id) values (5, '555', 104, '2010-04-03 00:00:00', '2010-04-07 00:00:00', true , 1);
insert into guest_stay_history (id, room_id, guest_id, arrival_time, departure_time, current_stay_indicator, hotel_id) values (6, '444', 105, '2010-04-03 00:00:00', '2010-04-07 00:00:00', true, 1);
--insert into guest_stay_history (id, room_id, guest_id, arrival_time, departure_time, guest_profile_detail_id) values (7, '333', 106, '2010-04-03 00:00:00', '2010-04-07 00:00:00', 106);
|
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for exam_answer
-- ----------------------------
DROP TABLE IF EXISTS `exam_answer`;
CREATE TABLE `exam_answer` (
`id` bigint(20) NOT NULL COMMENT '主键',
`exam_record_id` bigint(20) NOT NULL COMMENT '考试记录id',
`subject_id` bigint(20) NOT NULL COMMENT '题目ID',
`type` tinyint(4) NULL DEFAULT NULL,
`answer` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '答案',
`answer_type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '答题类型,0:正确,1:错误',
`score` tinyint(4) NULL DEFAULT NULL COMMENT '实际得分',
`mark_status` tinyint(4) NULL DEFAULT NULL,
`start_time` timestamp(0) NULL DEFAULT NULL COMMENT '开始时间',
`end_time` timestamp(0) NULL DEFAULT NULL COMMENT '结束时间',
`creator` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
`create_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间',
`modifier` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人',
`modify_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`del_flag` tinyint(4) NULL DEFAULT 0 COMMENT '删除标记 0:正常;1:删除',
`application_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '系统编号',
`tenant_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '答题表' ROW_FORMAT = Compact;
-- ----------------------------
-- Table structure for exam_course
-- ----------------------------
DROP TABLE IF EXISTS `exam_course`;
CREATE TABLE `exam_course` (
`id` bigint(20) NOT NULL COMMENT '主键',
`course_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '课程名称',
`college` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '学院',
`major` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '专业',
`teacher` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '老师',
`course_description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '课程描述',
`creator` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
`create_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间',
`modifier` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人',
`modify_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`del_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '删除标记 0:正常;1:删除',
`application_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '系统编号',
`tenant_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户编号',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '课程表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of exam_course
-- ----------------------------
INSERT INTO `exam_course` VALUES (590968789617741824, '计算机基础', '信息学院', '软件工程', '', '计算机基础', 'admin', '2019-10-07 15:28:03', 'admin', '2019-10-07 15:19:36', 0, 'EXAM', 'gitee');
INSERT INTO `exam_course` VALUES (590968881187786752, '大学语文', '信息学院', '软件工程', '陈老师', '大学语文', 'admin', '2019-10-07 15:28:00', 'admin', '2019-10-07 15:19:34', 0, 'EXAM', 'gitee');
INSERT INTO `exam_course` VALUES (630786336084856832, '1', '1', '1', '1', '1', 'admin', '2019-10-07 15:28:53', 'admin', '2019-10-07 15:20:23', 1, 'EXAM', 'gitee');
INSERT INTO `exam_course` VALUES (630786555333709824, '1', '1', '1', '1', '1', 'admin', '2019-10-07 15:29:06', 'admin', '2019-10-07 15:20:37', 1, 'EXAM', 'gitee');
-- ----------------------------
-- Table structure for exam_examination
-- ----------------------------
DROP TABLE IF EXISTS `exam_examination`;
CREATE TABLE `exam_examination` (
`id` bigint(20) NOT NULL COMMENT '主键',
`examination_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '考试名称',
`type` tinyint(4) NULL DEFAULT NULL COMMENT '考试类型',
`attention` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '考试注意事项',
`start_time` timestamp(0) NULL DEFAULT NULL COMMENT '考试开始时间',
`end_time` timestamp(0) NULL DEFAULT NULL COMMENT '考试结束时间',
`total_score` int(11) NOT NULL COMMENT '总分',
`status` tinyint(4) NULL DEFAULT NULL COMMENT '考试状态',
`avatar_id` bigint(20) NULL DEFAULT NULL COMMENT '图片ID',
`course_id` bigint(20) NULL DEFAULT NULL COMMENT '课程',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`creator` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '创建人',
`create_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`modifier` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人',
`modify_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`del_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '删除标记 0:正常;1:删除',
`application_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '系统编号',
`tenant_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户编号',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '考试信息表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of exam_examination
-- ----------------------------
INSERT INTO `exam_examination` VALUES (590969316204220416, '全国计算机统考练习题10道', 2, '练习', '2019-06-19 18:20:00', '2019-06-19 20:20:00', 50, 0, NULL, 590968789617741824, '全国计算机统考练习题10道', 'admin', '2019-06-19 18:21:04', 'admin', '2019-06-19 18:45:33', 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination` VALUES (590969514372501504, '四川省2016年普通高考文科综合能力测试-语文部分', 0, '注意事项:\n1.本试卷分第工卷(选择题)和第II卷(非选择题)两部分。答卷前,考生务必将白己的姓名、准考证号填写在答题卡上。\n2.回答第Ⅰ卷时,选出每小题答案后,用铅笔把答题卡上对应题目的答案标号涂黑。如需改动,用橡皮擦干净后,再选涂其它答案标号。写在本试卷上无效。\n3.回答第Ⅱ卷时,将答案写在答题卡上。写在本试卷上无效。\n4.考试结束后,将本试卷和答题卡一并交回。', '2019-07-02 19:21:00', '2019-07-04 16:02:00', 60, 0, NULL, 590968881187786752, '四川省2016年普通高考-文科综合能力测试', 'admin', '2019-06-19 18:21:51', 'admin', '2019-09-21 19:58:55', 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination` VALUES (625826218704506880, '12', 0, '1', '2019-10-07 15:32:23', '2019-10-09 15:32:25', 1, 0, NULL, NULL, '1', 'admin', '2019-09-23 22:49:58', 'admin', '2019-10-07 15:32:30', 1, 'EXAM', 'gitee');
INSERT INTO `exam_examination` VALUES (630880779513237504, '2', 0, '2', '2019-10-07 21:34:53', '2019-10-15 00:00:00', 2, 0, NULL, NULL, '22', 'admin', '2019-10-07 21:34:59', 'admin', '2019-10-11 22:20:47', 1, 'EXAM', 'gitee');
-- ----------------------------
-- Table structure for exam_examination_record
-- ----------------------------
DROP TABLE IF EXISTS `exam_examination_record`;
CREATE TABLE `exam_examination_record` (
`id` bigint(20) NOT NULL COMMENT '主键',
`user_id` bigint(20) NOT NULL COMMENT '用户id',
`examination_id` bigint(20) NOT NULL COMMENT '考试ID',
`start_time` timestamp(0) NULL DEFAULT NULL COMMENT '开始时间',
`end_time` timestamp(0) NULL DEFAULT NULL COMMENT '结束时间',
`score` int(11) NULL DEFAULT NULL COMMENT '成绩',
`correct_number` int(11) NULL DEFAULT NULL COMMENT '正确题目数量',
`incorrect_number` int(11) NULL DEFAULT NULL COMMENT '错误题目数量',
`submit_status` tinyint(4) NULL DEFAULT NULL,
`creator` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
`create_date` timestamp(0) NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '创建时间',
`modifier` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人',
`modify_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`del_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '删除标记 0:正常;1:删除',
`application_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '系统编号',
`tenant_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户编号',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '考试记录表' ROW_FORMAT = Compact;
-- ----------------------------
-- Table structure for exam_examination_subject
-- ----------------------------
DROP TABLE IF EXISTS `exam_examination_subject`;
CREATE TABLE `exam_examination_subject` (
`id` bigint(20) NOT NULL COMMENT '主键',
`examination_id` bigint(20) NULL DEFAULT NULL COMMENT '考试ID',
`category_id` bigint(20) NULL DEFAULT NULL COMMENT '分类',
`subject_id` bigint(20) NOT NULL COMMENT '题目ID',
`type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '类型 0-选择题,1-简答题',
`application_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '系统编号',
`tenant_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '考试题目表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of exam_examination_subject
-- ----------------------------
INSERT INTO `exam_examination_subject` VALUES (590970743886581760, 590969316204220416, NULL, 590970743878193152, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590970887440830464, 590969316204220416, NULL, 590970887432441856, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590971026888855552, 590969316204220416, NULL, 590971026880466944, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590971151145111552, 590969316204220416, NULL, 590971151128334336, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590971273547485184, 590969316204220416, NULL, 590971273539096576, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590971402648162304, 590969316204220416, NULL, 590971402639773696, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590971508113936384, 590969316204220416, NULL, 590971508109742080, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590971613944614913, 590969316204220416, NULL, 590971613944614912, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590971750154637312, 590969316204220416, NULL, 590971750146248704, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590971860049596416, 590969316204220416, NULL, 590971860041207808, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590972141151850496, 590969514372501504, NULL, 590972141118296064, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590972250216337408, 590969514372501504, NULL, 590972250212143104, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590972363114418176, 590969514372501504, NULL, 590972363110223872, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590972473890181120, 590969514372501504, NULL, 590972473877598208, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590972590185648128, 590969514372501504, NULL, 590972590177259520, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590972723384160257, 590969514372501504, NULL, 590972723384160256, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590972834742931456, 590969514372501504, NULL, 590972834734542848, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590972929701974016, 590969514372501504, NULL, 590972929693585408, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590973027999682560, 590969514372501504, NULL, 590973027995488256, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590973115165708288, 590969514372501504, NULL, 590973115157319680, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590973253548380160, 590969514372501504, NULL, 590973253544185856, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (590973360670904320, 590969514372501504, NULL, 590973360662515712, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (630856319682875392, 625826218704506880, NULL, 630856319242473472, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (630856451711176704, 625826218704506880, NULL, 630856451555987456, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (630856496523120640, 625826218704506880, NULL, 630856496279851008, 3, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (630856557130813440, 625826218704506880, NULL, 630856556883349504, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (630880822823620608, 630880779513237504, NULL, 630880822542602240, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (630880853144244224, 630880779513237504, NULL, 630880852892585984, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (630880881971695616, 630880779513237504, NULL, 630880881720037376, 0, 'EXAM', 'gitee');
INSERT INTO `exam_examination_subject` VALUES (635557908003819520, NULL, 635555845517742080, 635557907726995456, 1, 'EXAM', 'gitee');
-- ----------------------------
-- Table structure for exam_knowledge
-- ----------------------------
DROP TABLE IF EXISTS `exam_knowledge`;
CREATE TABLE `exam_knowledge` (
`id` bigint(20) NOT NULL COMMENT '主键',
`knowledge_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '知识名称',
`knowledge_desc` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '知识描述',
`attachment_id` bigint(20) NULL DEFAULT NULL COMMENT '附件ID',
`status` tinyint(4) NOT NULL COMMENT '状态',
`creator` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
`create_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间',
`modifier` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人',
`modify_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`del_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '删除标记 0:正常;1:删除',
`application_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '系统编号',
`tenant_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户编号',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '知识表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of exam_knowledge
-- ----------------------------
INSERT INTO `exam_knowledge` VALUES (590978901526843392, '四川省2016年普通高考适应性测试', '四川省2016年普通高考适应性测试', 590978944174526464, 0, 'admin', '2019-10-07 15:16:52', 'admin', '2019-10-07 15:08:25', 0, 'EXAM', 'gitee');
-- ----------------------------
-- Table structure for exam_pictures
-- ----------------------------
DROP TABLE IF EXISTS `exam_pictures`;
CREATE TABLE `exam_pictures` (
`id` bigint(20) NOT NULL COMMENT '主键',
`picture_address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '知识名称',
`attachment_id` bigint(20) NULL DEFAULT NULL COMMENT '附件ID',
`creator` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
`create_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间',
`modifier` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人',
`modify_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`del_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '删除标记 0:正常;1:删除',
`application_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '系统编号',
`tenant_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户编号',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '图片表' ROW_FORMAT = Compact;
-- ----------------------------
-- Table structure for exam_subject_category
-- ----------------------------
DROP TABLE IF EXISTS `exam_subject_category`;
CREATE TABLE `exam_subject_category` (
`id` bigint(20) NOT NULL COMMENT '主键',
`category_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分类名称',
`category_desc` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分类描述',
`parent_id` bigint(20) NULL DEFAULT NULL COMMENT '父分类ID',
`sort` int(11) NULL DEFAULT NULL COMMENT '排序号',
`type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '类型: 0-私共,1-公有',
`creator` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
`create_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间',
`modifier` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '修改人',
`modify_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`del_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '删除标记 0:正常;1:删除',
`application_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '系统编号',
`tenant_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户编号',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '题目分类表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of exam_subject_category
-- ----------------------------
INSERT INTO `exam_subject_category` VALUES (590975991732637696, '计算机', NULL, -1, 30, 0, 'admin', '2019-09-21 16:20:22', 'admin', '2019-06-19 18:47:36', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_category` VALUES (590976037467328512, '数据库基础', NULL, 590975991732637696, 30, 0, 'admin', '2019-09-21 16:20:24', 'admin', '2019-07-04 13:51:03', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_category` VALUES (590976094983819264, 'Java程序设计', NULL, 590975991732637696, 31, 0, 'admin', '2019-09-21 16:20:25', 'admin', '2019-06-19 18:48:00', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_category` VALUES (590976142211682304, '数据结构', NULL, 590975991732637696, 33, 0, 'admin', '2019-09-21 16:20:26', 'admin', '2019-06-19 18:48:12', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_category` VALUES (590976191398285312, '地理', NULL, -1, 31, 0, 'admin', '2019-09-21 16:20:27', 'admin', '2019-06-19 18:48:23', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_category` VALUES (590976335996915712, '计算机基础', NULL, 590975991732637696, 34, 0, 'admin', '2019-09-21 16:20:28', 'admin', '2019-06-19 18:48:58', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_category` VALUES (602231546270846976, '多选测试', NULL, -1, 30, 0, 'admin', '2019-09-21 16:20:29', 'admin', '2019-07-20 20:13:10', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_category` VALUES (634501836186980352, '测试', NULL, -1, 30, 0, 'admin', '2019-10-17 21:32:29', 'admin', '2019-10-17 21:23:46', 1, 'EXAM', 'gitee');
INSERT INTO `exam_subject_category` VALUES (635555845517742080, '测试', '测试', -1, 30, 0, 'admin', '2019-10-20 20:25:33', 'admin', '2019-10-20 19:12:02', 1, 'EXAM', 'gitee');
-- ----------------------------
-- Table structure for exam_subject_choices
-- ----------------------------
DROP TABLE IF EXISTS `exam_subject_choices`;
CREATE TABLE `exam_subject_choices` (
`id` bigint(20) NOT NULL COMMENT '主键',
`category_id` bigint(20) NOT NULL,
`subject_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '题目名称',
`choices_type` tinyint(4) NOT NULL COMMENT '题目类型',
`answer` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '参考答案',
`score` int(11) NOT NULL COMMENT '题目分值',
`analysis` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '解析',
`level` tinyint(4) NOT NULL COMMENT '难度等级',
`creator` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '创建人',
`create_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间',
`modifier` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '修改人',
`modify_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`del_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '删除标记 0:正常;1:删除',
`application_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '系统编号',
`tenant_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '选择题表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of exam_subject_choices
-- ----------------------------
INSERT INTO `exam_subject_choices` VALUES (590970743878193152, 0, '自计算机问世至今已经经历了四个时代,划分时代的主要依据是计算机的_', 0, 'D', 5, '<p>无</p>', 2, 'admin', '2019-06-19 18:26:45', 'admin', '2019-06-19 18:31:29', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590970887432441856, 0, '第一台计算机是在1946年在美国诞生,该机的英文缩写是_', 0, 'A', 5, '<p>无</p>', 2, 'admin', '2019-06-19 18:27:19', 'admin', '2019-06-19 18:27:19', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590971026880466944, 0, '当前的计算机一般被认为是第四代计算机,它所采用的逻辑元件是_', 0, 'C', 5, '无', 2, 'admin', '2019-06-19 18:27:52', 'admin', '2019-06-19 18:27:52', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590971151128334336, 0, '当前计算机的应用最广泛的领域是_', 0, 'C', 5, '无', 2, 'admin', '2019-06-19 18:28:22', 'admin', '2019-06-19 18:28:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590971273539096576, 0, '早期的计算机体积大、耗电多、速度慢,其主要原因是制约于_', 0, 'D', 5, '无', 2, 'admin', '2019-06-19 18:28:51', 'admin', '2019-06-19 18:28:51', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590971402639773696, 0, '现代计算机之所以能够自动、连续地进行数据处理,主要是因为_', 0, 'D', 5, '无', 2, 'admin', '2019-06-19 18:29:22', 'admin', '2019-06-19 18:29:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590971508109742080, 0, '电子计算机按规模和处理能力划分,可以分为_', 0, 'C', 5, '无', 2, 'admin', '2019-06-19 18:29:47', 'admin', '2019-06-19 18:29:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590971613944614912, 0, '将计算机分为通用计算机、专用计算机两类的分类标准是_', 0, 'B', 5, '无', 2, 'admin', '2019-06-19 18:30:12', 'admin', '2019-06-19 18:30:12', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590971750146248704, 0, '既可以接收、处理和输出模拟量,也可以接收、处理和输出数字量的计算机是_', 0, 'C', 5, '无', 2, 'admin', '2019-06-19 18:30:44', 'admin', '2019-06-19 18:30:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590971860041207808, 0, '至今日,计算机仍采用存储程序原理,原理的提出者是_', 0, 'C', 5, '无', 2, 'admin', '2019-06-19 18:31:11', 'admin', '2019-06-19 18:31:11', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590972141118296064, 0, '《小雅·鹿鸣》本是西周贵族宣扬宴飨之仪的乐歌,后扩散到民间,在乡人宴会上也可传唱。这表明西周时期', 0, 'B', 5, '无', 2, 'admin', '2019-10-20 20:06:09', 'admin', '2019-10-20 19:57:27', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590972250212143104, 0, '公元前 212 年,秦始皇坑杀“术士”,长子扶苏劝谏说:“远方黔首未集,诸生皆诵法孔子,今上皆重法绳之,臣恐天下不安,唯上察之”。这反映当时', 0, 'D', 5, '', 2, 'admin', '2019-06-19 18:32:44', 'admin', '2019-06-19 18:32:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590972363110223872, 0, '唐前期的政治人物多为北方人,北宋时政治人物多出生于江西、福建、苏南等地。这一变化主要反映了', 0, 'C', 5, '', 2, 'admin', '2019-06-19 18:33:11', 'admin', '2019-06-19 18:33:11', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590972473877598208, 0, '李鸿章凭淮军实力日渐强盛。一次,他在游孔林时说道:“孔子不会打洋枪,今不足贵也。”李鸿章这样评价孔子,其背景最可能是', 0, 'B', 5, '', 2, 'admin', '2019-06-19 18:33:37', 'admin', '2019-06-19 18:33:37', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590972590177259520, 0, '《荆楚岁时记》云:“社日,四邻并结宗会社,宰牲牢,为屋于树下,先祭神,然后食其胙。”据此可知,社日的民俗功能主要是', 0, 'A', 5, '', 2, 'admin', '2019-06-19 18:34:05', 'admin', '2019-06-19 18:34:05', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590972723384160256, 0, '李鸿章凭淮军实力日渐强盛。一次,他在游孔林时说道:“孔子不会打洋枪,今不足贵也。”李鸿章这样评价孔子,其背景最可能是', 0, 'B', 5, '', 2, 'admin', '2019-06-19 18:34:36', 'admin', '2019-06-19 18:34:36', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590972834734542848, 0, '1930 年,中共中央在回应共产国际指示时说:党的任务决不是准备夺取部分的政权,如果认为现在还是准备夺取部分的政权,无疑是对革命形势估量不足的右倾观念。这一回应表明', 0, 'D', 5, '', 2, 'admin', '2019-06-19 18:35:03', 'admin', '2019-06-19 18:35:03', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590972929693585408, 0, '1938 年初,国民政府颁布多部法规,要求将每一工厂、商号、银行、钱庄都纳入到同业工会内,又将每一同业工会纳入当地商会内。这些法规', 0, 'D', 5, '', 2, 'admin', '2019-06-19 18:35:26', 'admin', '2019-06-19 18:35:26', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590973027995488256, 0, '古代雅典法律规定:每个公民从出生起,城邦就是他的最高监护人,要按城邦的需要来抚养和教育。这反映出雅典', 0, 'A', 5, '', 2, 'admin', '2019-06-19 18:35:49', 'admin', '2019-06-19 18:35:49', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590973115157319680, 0, '19 世纪末 20 世纪初,一向傲慢的英国人惊奇地发现:“身上的衣服是德国缝制的,少女们周末穿的漂亮披风与上衣来自德国。更让人吃惊的是生活中有许多东西都产自德国,……连周末歌剧院里上演的歌剧也是德国人创作的,演员无一例外是德国人。”可见,当时傲慢的英国人', 0, 'D', 5, '', 2, 'admin', '2019-06-19 18:36:10', 'admin', '2019-06-19 18:36:10', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590973253544185856, 0, '1920–1921 年,苏俄许多工人流往农村,还有一些则自谋生路成了小手工业者。据此推知当时苏俄', 0, 'A', 5, '', 2, 'admin', '2019-06-19 18:36:43', 'admin', '2019-06-19 18:36:43', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590973360662515712, 0, '1964 年 6 月,美国《时代》杂志发表社论指出:“从北约到联合国,从拉丁美洲到红色中国,几乎在世界政治中的每一个问题或地区上,法国都采取和美国政策不一致的态度。”这一社论', 0, 'B', 5, '', 2, 'admin', '2019-06-19 18:37:08', 'admin', '2019-06-19 18:37:08', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (590976455786237952, 590976335996915712, '<p>自计算机问世至今已经经历了四个时代,划分时代的主要依据是计算机的_</p>', 0, 'D', 5, '', 2, 'admin', '2019-06-19 18:49:26', 'admin', '2019-07-20 20:29:15', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (602231589715447808, 602231546270846976, '<p>32</p>', 3, 'A', 5, '233', 2, 'admin', '2019-07-20 20:13:20', 'admin', '2019-07-20 20:30:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (625826265252892672, 0, '2', 0, 'B', 5, '2', 2, 'admin', '2019-09-23 22:50:09', 'admin', '2019-09-23 22:50:09', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (625827733561282560, 0, '2', 0, 'B', 5, '2', 2, 'admin', '2019-09-23 22:55:59', 'admin', '2019-09-23 22:55:59', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (630793085445607424, 0, '1', 0, 'A', 5, '1', 2, 'admin', '2019-10-07 15:46:31', 'admin', '2019-10-07 15:46:31', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (630793358951976960, 0, '2', 0, 'B', 5, '<p>2</p>', 2, 'admin', '2019-10-07 15:47:36', 'admin', '2019-10-07 15:47:36', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (630856319242473472, 0, '1', 0, 'A', 5, '<p>1</p>', 2, 'admin', '2019-10-07 19:57:47', 'admin', '2019-10-07 19:57:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (630856451555987456, 0, '2', 0, 'B', 5, '2', 2, 'admin', '2019-10-07 19:58:19', 'admin', '2019-10-07 19:58:19', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (630856496279851008, 0, '3', 0, 'B', 5, '3', 2, 'admin', '2019-10-07 19:58:29', 'admin', '2019-10-07 19:58:29', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (630856556883349504, 0, '3', 0, 'C', 5, '3', 2, 'admin', '2019-10-07 19:58:44', 'admin', '2019-10-07 19:58:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (630880822542602240, 0, '1', 0, 'A', 5, '1', 2, 'admin', '2019-10-07 21:35:09', 'admin', '2019-10-07 21:35:09', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (630880852892585984, 0, '2', 0, 'B', 5, '2', 2, 'admin', '2019-10-07 21:35:17', 'admin', '2019-10-07 21:35:17', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_choices` VALUES (630880881720037376, 0, '3', 0, 'C', 5, '3', 2, 'admin', '2019-10-07 21:35:23', 'admin', '2019-10-07 21:35:23', 0, 'EXAM', 'gitee');
-- ----------------------------
-- Table structure for exam_subject_judgement
-- ----------------------------
DROP TABLE IF EXISTS `exam_subject_judgement`;
CREATE TABLE `exam_subject_judgement` (
`id` bigint(20) NOT NULL COMMENT '主键',
`category_id` bigint(20) NULL DEFAULT NULL COMMENT '分类ID',
`subject_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '题目名称',
`answer` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '参考答案',
`score` int(11) NOT NULL DEFAULT 0 COMMENT '分值',
`analysis` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '解析',
`level` tinyint(4) NOT NULL COMMENT '难度等级',
`creator` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '创建人',
`create_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间',
`modifier` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '修改人',
`modify_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`del_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '删除标记 0:正常;1:删除',
`application_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '系统编号',
`tenant_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '租户编号',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '简答题表' ROW_FORMAT = Compact;
-- ----------------------------
-- Table structure for exam_subject_option
-- ----------------------------
DROP TABLE IF EXISTS `exam_subject_option`;
CREATE TABLE `exam_subject_option` (
`id` bigint(20) NOT NULL COMMENT '主键',
`subject_choices_id` bigint(20) NOT NULL COMMENT '选择题ID',
`option_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '选项名称',
`option_content` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '选项内容',
`creator` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '创建人',
`create_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间',
`modifier` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '修改人',
`modify_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`del_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '删除标记 0:正常;1:删除',
`application_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '系统编号',
`tenant_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '租户编号',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '选择题选项表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of exam_subject_option
-- ----------------------------
INSERT INTO `exam_subject_option` VALUES (590970743911747584, 590970743878193152, 'A', '<p>规模</p>', 'admin', '2019-06-19 18:26:45', 'admin', '2019-06-19 18:31:29', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590970743911747585, 590970743878193152, 'B', '<p>功能</p>', 'admin', '2019-06-19 18:26:45', 'admin', '2019-06-19 18:31:29', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590970743911747586, 590970743878193152, 'C', '<p>性能</p>', 'admin', '2019-06-19 18:26:45', 'admin', '2019-06-19 18:31:29', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590970743911747587, 590970743878193152, 'D', '构成元件', 'admin', '2019-06-19 18:26:45', 'admin', '2019-06-19 18:31:29', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590970887457607680, 590970887432441856, 'A', '<p>ENIAC</p>', 'admin', '2019-06-19 18:27:19', 'admin', '2019-06-19 18:27:19', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590970887457607681, 590970887432441856, 'B', '<p>EDVAC</p>', 'admin', '2019-06-19 18:27:19', 'admin', '2019-06-19 18:27:19', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590970887457607682, 590970887432441856, 'C', '<p>EDVAE</p>', 'admin', '2019-06-19 18:27:19', 'admin', '2019-06-19 18:27:19', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590970887457607683, 590970887432441856, 'D', 'MARK', 'admin', '2019-06-19 18:27:19', 'admin', '2019-06-19 18:27:19', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971026893049856, 590971026880466944, 'A', '<p>集成电路</p>', 'admin', '2019-06-19 18:27:52', 'admin', '2019-06-19 18:27:52', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971026901438464, 590971026880466944, 'B', '<p>晶体管</p>', 'admin', '2019-06-19 18:27:52', 'admin', '2019-06-19 18:27:52', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971026901438465, 590971026880466944, 'C', '<p>大规模集成电路</p>', 'admin', '2019-06-19 18:27:52', 'admin', '2019-06-19 18:27:52', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971026901438466, 590971026880466944, 'D', '电子管', 'admin', '2019-06-19 18:27:52', 'admin', '2019-06-19 18:27:52', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971151170277376, 590971151128334336, 'A', '<p>辅助设计</p>', 'admin', '2019-06-19 18:28:22', 'admin', '2019-06-19 18:28:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971151170277377, 590971151128334336, 'B', '<p>科学计算</p>', 'admin', '2019-06-19 18:28:22', 'admin', '2019-06-19 18:28:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971151170277378, 590971151128334336, 'C', '<p>数据处理</p>', 'admin', '2019-06-19 18:28:22', 'admin', '2019-06-19 18:28:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971151170277379, 590971151128334336, 'D', '<p>过程控制</p>', 'admin', '2019-06-19 18:28:22', 'admin', '2019-06-19 18:28:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971273560068096, 590971273539096576, 'A', '<p>元材料</p>', 'admin', '2019-06-19 18:28:51', 'admin', '2019-06-19 18:28:51', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971273560068097, 590971273539096576, 'B', '<p>工艺水平</p>', 'admin', '2019-06-19 18:28:51', 'admin', '2019-06-19 18:28:51', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971273560068098, 590971273539096576, 'C', '<p>设计水平</p>', 'admin', '2019-06-19 18:28:51', 'admin', '2019-06-19 18:28:51', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971273560068099, 590971273539096576, 'D', '元器件', 'admin', '2019-06-19 18:28:51', 'admin', '2019-06-19 18:28:51', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971402681716736, 590971402639773696, 'A', '<p>采用了开关电路</p>', 'admin', '2019-06-19 18:29:22', 'admin', '2019-06-19 18:29:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971402681716737, 590971402639773696, 'B', '<p>采用了半导体器件</p>', 'admin', '2019-06-19 18:29:22', 'admin', '2019-06-19 18:29:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971402681716738, 590971402639773696, 'C', '<p>采用了二进制</p>', 'admin', '2019-06-19 18:29:22', 'admin', '2019-06-19 18:29:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971402681716739, 590971402639773696, 'D', '<p>具有存储程序的功能</p>', 'admin', '2019-06-19 18:29:22', 'admin', '2019-06-19 18:29:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971508126519296, 590971508109742080, 'A', '<p>数字电子计算机和模拟电子计算机</p>', 'admin', '2019-06-19 18:29:47', 'admin', '2019-06-19 18:29:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971508126519297, 590971508109742080, 'B', '<p>通用计算机和专用计算机</p>', 'admin', '2019-06-19 18:29:47', 'admin', '2019-06-19 18:29:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971508126519298, 590971508109742080, 'C', '<p>巨型计算机、中小型计算机和微型计算机</p>', 'admin', '2019-06-19 18:29:47', 'admin', '2019-06-19 18:29:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971508126519299, 590971508109742080, 'D', '科学与过程计算计算机、工业控制计算机和数据计算机', 'admin', '2019-06-19 18:29:47', 'admin', '2019-06-19 18:29:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971613961392128, 590971613944614912, 'A', '<p>计算机处理数据的方式</p>', 'admin', '2019-06-19 18:30:12', 'admin', '2019-06-19 18:30:12', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971613961392129, 590971613944614912, 'B', '<p>计算机使用范围</p>', 'admin', '2019-06-19 18:30:12', 'admin', '2019-06-19 18:30:12', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971613961392130, 590971613944614912, 'C', '<p>机器的规模</p>', 'admin', '2019-06-19 18:30:12', 'admin', '2019-06-19 18:30:12', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971613961392131, 590971613944614912, 'D', '计算机的功能和处理能力', 'admin', '2019-06-19 18:30:12', 'admin', '2019-06-19 18:30:12', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971750163025920, 590971750146248704, 'A', '<p>电子数字计算机</p>', 'admin', '2019-06-19 18:30:44', 'admin', '2019-06-19 18:30:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971750167220224, 590971750146248704, 'B', '<p>电子模拟计算机</p>', 'admin', '2019-06-19 18:30:44', 'admin', '2019-06-19 18:30:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971750167220225, 590971750146248704, 'C', '<p>数模混合计算机</p>', 'admin', '2019-06-19 18:30:44', 'admin', '2019-06-19 18:30:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971750167220226, 590971750146248704, 'D', '<p>专用计算机</p>', 'admin', '2019-06-19 18:30:44', 'admin', '2019-06-19 18:30:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971860062179328, 590971860041207808, 'A', '<p>莫尔</p>', 'admin', '2019-06-19 18:31:11', 'admin', '2019-06-19 18:31:11', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971860062179329, 590971860041207808, 'B', '<p>比尔·盖次</p>', 'admin', '2019-06-19 18:31:11', 'admin', '2019-06-19 18:31:11', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971860062179330, 590971860041207808, 'C', '<p>冯·诺依曼</p>', 'admin', '2019-06-19 18:31:11', 'admin', '2019-06-19 18:31:11', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590971860062179331, 590971860041207808, 'D', '科得', 'admin', '2019-06-19 18:31:11', 'admin', '2019-06-19 18:31:11', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972141156044800, 590972141118296064, 'A', '<p>周人生活较为富足</p>', 'admin', '2019-06-19 18:32:18', 'admin', '2019-10-20 19:57:27', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972141156044801, 590972141118296064, 'B', '<p>礼乐文明得到广泛认同</p>', 'admin', '2019-06-19 18:32:18', 'admin', '2019-10-20 19:57:27', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972141156044802, 590972141118296064, 'C', '<p>乡人社会地位提高</p>', 'admin', '2019-06-19 18:32:18', 'admin', '2019-10-20 19:57:27', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972141156044803, 590972141118296064, 'D', '<p>贵族奢靡之风波及民间</p>', 'admin', '2019-06-19 18:32:18', 'admin', '2019-10-20 19:57:27', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972250224726016, 590972250212143104, 'A', '<p>统一进程曲折</p>', 'admin', '2019-06-19 18:32:44', 'admin', '2019-06-19 18:32:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972250224726017, 590972250212143104, 'B', '<p>地方治理不畅</p>', 'admin', '2019-06-19 18:32:44', 'admin', '2019-06-19 18:32:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972250224726018, 590972250212143104, 'C', '<p>始皇灭儒崇法</p>', 'admin', '2019-06-19 18:32:44', 'admin', '2019-06-19 18:32:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972250224726019, 590972250212143104, 'D', '儒学影响较大', 'admin', '2019-06-19 18:32:44', 'admin', '2019-06-19 18:32:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972363127001088, 590972363110223872, 'A', '<p>官僚集团重视本地域人才</p>', 'admin', '2019-06-19 18:33:11', 'admin', '2019-06-19 18:33:11', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972363127001089, 590972363110223872, 'B', '<p>南北方士人志向差异</p>', 'admin', '2019-06-19 18:33:11', 'admin', '2019-06-19 18:33:11', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972363127001090, 590972363110223872, 'C', '<p>科举制改变人才地域分布</p>', 'admin', '2019-06-19 18:33:11', 'admin', '2019-06-19 18:33:11', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972363127001091, 590972363110223872, 'D', '<p>政治中心转移到南方</p>', 'admin', '2019-06-19 18:33:11', 'admin', '2019-06-19 18:33:11', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972473902764032, 590972473877598208, 'A', '<p>“师夷长技”思想萌发</p>', 'admin', '2019-06-19 18:33:37', 'admin', '2019-06-19 18:33:37', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972473902764033, 590972473877598208, 'B', '<p>“中体西用”思潮兴起</p>', 'admin', '2019-06-19 18:33:37', 'admin', '2019-06-19 18:33:37', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972473902764034, 590972473877598208, 'C', '<p>“中体西用”思潮兴起</p>', 'admin', '2019-06-19 18:33:37', 'admin', '2019-06-19 18:33:37', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972473902764035, 590972473877598208, 'D', '<p>“尊孔复古”思潮泛滥</p>', 'admin', '2019-06-19 18:33:37', 'admin', '2019-06-19 18:33:37', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972590189842432, 590972590177259520, 'A', '<p>联谊乡邻</p>', 'admin', '2019-06-19 18:34:05', 'admin', '2019-06-19 18:34:05', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972590189842433, 590972590177259520, 'B', '<p>颂扬盛世</p>', 'admin', '2019-06-19 18:34:05', 'admin', '2019-06-19 18:34:05', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972590189842434, 590972590177259520, 'C', '<p>缅怀先祖</p>', 'admin', '2019-06-19 18:34:05', 'admin', '2019-06-19 18:34:05', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972590189842435, 590972590177259520, 'D', '助危济困', 'admin', '2019-06-19 18:34:05', 'admin', '2019-06-19 18:34:05', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972723392548864, 590972723384160256, 'A', '<p>“师夷长技”思想萌发</p>', 'admin', '2019-06-19 18:34:37', 'admin', '2019-06-19 18:34:37', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972723392548865, 590972723384160256, 'B', '<p>“中体西用”思潮兴起</p>', 'admin', '2019-06-19 18:34:37', 'admin', '2019-06-19 18:34:37', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972723392548866, 590972723384160256, 'C', '<p>“托古改制”思想产生</p>', 'admin', '2019-06-19 18:34:37', 'admin', '2019-06-19 18:34:37', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972723392548867, 590972723384160256, 'D', '<p>“尊孔复古”思潮泛滥</p>', 'admin', '2019-06-19 18:34:37', 'admin', '2019-06-19 18:34:37', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972834759708672, 590972834734542848, 'A', '<p>中共夺取全国政权时机成熟</p>', 'admin', '2019-06-19 18:35:03', 'admin', '2019-06-19 18:35:03', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972834759708673, 590972834734542848, 'B', '<p>中共找到符合国情的道路</p>', 'admin', '2019-06-19 18:35:03', 'admin', '2019-06-19 18:35:03', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972834759708674, 590972834734542848, 'C', '<p>中共找到符合国情的道路</p>', 'admin', '2019-06-19 18:35:03', 'admin', '2019-06-19 18:35:03', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972834759708675, 590972834734542848, 'D', '<p>中共出现自主革命的倾向</p>', 'admin', '2019-06-19 18:35:03', 'admin', '2019-06-19 18:35:03', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972929714556928, 590972929693585408, 'A', '<p>抑制了官僚资本膨胀</p>', 'admin', '2019-06-19 18:35:26', 'admin', '2019-06-19 18:35:26', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972929714556929, 590972929693585408, 'B', '<p>挫败了日军经济掠夺</p>', 'admin', '2019-06-19 18:35:26', 'admin', '2019-06-19 18:35:26', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972929714556930, 590972929693585408, 'C', '<p>防止了国民经济崩溃</p>', 'admin', '2019-06-19 18:35:26', 'admin', '2019-06-19 18:35:26', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590972929714556931, 590972929693585408, 'D', '积聚了抗战经济力量', 'admin', '2019-06-19 18:35:26', 'admin', '2019-06-19 18:35:26', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973028020654080, 590973027995488256, 'A', '<p>公民培养受强制性约束</p>', 'admin', '2019-06-19 18:35:49', 'admin', '2019-06-19 18:35:49', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973028020654081, 590973027995488256, 'B', '<p>法律有违人文精神</p>', 'admin', '2019-06-19 18:35:49', 'admin', '2019-06-19 18:35:49', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973028020654082, 590973027995488256, 'C', '<p>父母失去教育子女资格</p>', 'admin', '2019-06-19 18:35:49', 'admin', '2019-06-19 18:35:49', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973028020654083, 590973027995488256, 'D', '公民教育制度完备', 'admin', '2019-06-19 18:35:49', 'admin', '2019-06-19 18:35:49', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973115178291200, 590973115157319680, 'A', '<p>推崇德国文化</p>', 'admin', '2019-06-19 18:36:10', 'admin', '2019-06-19 18:36:10', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973115178291201, 590973115157319680, 'B', '<p>注意到了德国的威胁</p>', 'admin', '2019-06-19 18:36:10', 'admin', '2019-06-19 18:36:10', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973115178291202, 590973115157319680, 'C', '<p>喜爱德国产品</p>', 'admin', '2019-06-19 18:36:10', 'admin', '2019-06-19 18:36:10', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973115178291203, 590973115157319680, 'D', '意识到了德国的崛起', 'admin', '2019-06-19 18:36:10', 'admin', '2019-06-19 18:36:10', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973253556768768, 590973253544185856, 'A', '<p>战时共产主义政策有所突破</p>', 'admin', '2019-06-19 18:36:43', 'admin', '2019-06-19 18:36:43', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973253556768769, 590973253544185856, 'B', '<p>新经济政策成效显著</p>', 'admin', '2019-06-19 18:36:43', 'admin', '2019-06-19 18:36:43', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973253556768770, 590973253544185856, 'C', '<p>国营农庄吸引了大量劳动力</p>', 'admin', '2019-06-19 18:36:43', 'admin', '2019-06-19 18:36:43', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973253556768771, 590973253544185856, 'D', '政府重视日用品生产', 'admin', '2019-06-19 18:36:43', 'admin', '2019-06-19 18:36:43', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973360691875840, 590973360662515712, 'A', '<p>揭示了法国倒向社会主义阵营</p>', 'admin', '2019-06-19 18:37:08', 'admin', '2019-06-19 18:37:08', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973360691875841, 590973360662515712, 'B', '<p>反映了法国推行独立外交</p>', 'admin', '2019-06-19 18:37:08', 'admin', '2019-06-19 18:37:08', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973360691875842, 590973360662515712, 'C', '<p>体现了两大阵营对抗趋于缓和</p>', 'admin', '2019-06-19 18:37:08', 'admin', '2019-06-19 18:37:08', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590973360691875843, 590973360662515712, 'D', '体现了两大阵营对抗趋于缓和', 'admin', '2019-06-19 18:37:08', 'admin', '2019-06-19 18:37:08', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590976455823986688, 590976455786237952, 'A', '<p>规模</p>', 'admin', '2019-06-19 18:49:26', 'admin', '2019-07-20 20:29:15', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590976455823986689, 590976455786237952, 'B', '<p>功能</p>', 'admin', '2019-06-19 18:49:26', 'admin', '2019-07-20 20:29:15', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590976455823986690, 590976455786237952, 'C', '<p>性能</p>', 'admin', '2019-06-19 18:49:26', 'admin', '2019-07-20 20:29:15', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590976455823986691, 590976455786237952, 'D', '构成元件', 'admin', '2019-06-19 18:49:26', 'admin', '2019-07-20 20:29:15', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590976456683819008, 590976456675430400, 'A', '<p>规模</p>', 'admin', '2019-06-19 18:49:27', 'admin', '2019-06-19 18:49:27', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590976456683819009, 590976456675430400, 'B', '<p>功能</p>', 'admin', '2019-06-19 18:49:27', 'admin', '2019-06-19 18:49:27', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590976456683819010, 590976456675430400, 'C', '<p>性能</p>', 'admin', '2019-06-19 18:49:27', 'admin', '2019-06-19 18:49:27', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (590976456683819011, 590976456675430400, 'D', '构成元件', 'admin', '2019-06-19 18:49:27', 'admin', '2019-06-19 18:49:27', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (602231589723836416, 602231589715447808, 'A', '32', 'admin', '2019-07-20 20:13:20', 'admin', '2019-07-20 20:30:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (602231589723836417, 602231589715447808, 'B', '323', 'admin', '2019-07-20 20:13:20', 'admin', '2019-07-20 20:30:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (602231589723836418, 602231589715447808, 'C', '323', 'admin', '2019-07-20 20:13:20', 'admin', '2019-07-20 20:30:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (602231589723836419, 602231589715447808, 'D', '323', 'admin', '2019-07-20 20:13:20', 'admin', '2019-07-20 20:30:22', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625063647999299584, 625063647458234368, 'A', '', 'admin', '2019-09-21 20:19:47', 'admin', '2019-09-21 20:19:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625063647999299585, 625063647458234368, 'B', '', 'admin', '2019-09-21 20:19:47', 'admin', '2019-09-21 20:19:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625063647999299586, 625063647458234368, 'C', '', 'admin', '2019-09-21 20:19:47', 'admin', '2019-09-21 20:19:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625063647999299587, 625063647458234368, 'D', '', 'admin', '2019-09-21 20:19:47', 'admin', '2019-09-21 20:19:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625065138394894336, 625065137853829120, 'A', '', 'admin', '2019-09-21 20:25:42', 'admin', '2019-09-21 20:25:42', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625065138394894337, 625065137853829120, 'B', '', 'admin', '2019-09-21 20:25:42', 'admin', '2019-09-21 20:25:42', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625065138394894338, 625065137853829120, 'C', '', 'admin', '2019-09-21 20:25:42', 'admin', '2019-09-21 20:25:42', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625065138394894339, 625065137853829120, 'D', '', 'admin', '2019-09-21 20:25:42', 'admin', '2019-09-21 20:25:42', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625819207472386048, 625819206985846784, 'A', '', 'admin', '2019-09-23 22:22:06', 'admin', '2019-09-23 22:22:06', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625819207472386049, 625819206985846784, 'B', '', 'admin', '2019-09-23 22:22:06', 'admin', '2019-09-23 22:22:06', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625819207472386050, 625819206985846784, 'C', '', 'admin', '2019-09-23 22:22:06', 'admin', '2019-09-23 22:22:06', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625819207472386051, 625819206985846784, 'D', '', 'admin', '2019-09-23 22:22:06', 'admin', '2019-09-23 22:22:06', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625826265500356608, 625826265252892672, 'A', '2', 'admin', '2019-09-23 22:50:09', 'admin', '2019-09-23 22:50:09', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625826265500356609, 625826265252892672, 'B', '2', 'admin', '2019-09-23 22:50:09', 'admin', '2019-09-23 22:50:09', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625826265500356610, 625826265252892672, 'C', '22', 'admin', '2019-09-23 22:50:09', 'admin', '2019-09-23 22:50:09', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625826265508745216, 625826265252892672, 'D', '2', 'admin', '2019-09-23 22:50:09', 'admin', '2019-09-23 22:50:09', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625827733783580672, 625827733561282560, 'A', '2', 'admin', '2019-09-23 22:55:59', 'admin', '2019-09-23 22:55:59', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625827733783580673, 625827733561282560, 'B', '2', 'admin', '2019-09-23 22:55:59', 'admin', '2019-09-23 22:55:59', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625827733783580674, 625827733561282560, 'C', '2', 'admin', '2019-09-23 22:55:59', 'admin', '2019-09-23 22:55:59', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (625827733783580675, 625827733561282560, 'D', '2', 'admin', '2019-09-23 22:55:59', 'admin', '2019-09-23 22:55:59', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630783408691351552, 630783408150286336, 'A', '', 'admin', '2019-10-07 15:08:04', 'admin', '2019-10-07 15:08:04', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630783408691351553, 630783408150286336, 'B', '', 'admin', '2019-10-07 15:08:04', 'admin', '2019-10-07 15:08:04', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630783408691351554, 630783408150286336, 'C', '', 'admin', '2019-10-07 15:08:04', 'admin', '2019-10-07 15:08:04', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630783408691351555, 630783408150286336, 'D', '', 'admin', '2019-10-07 15:08:04', 'admin', '2019-10-07 15:08:04', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630793085604990976, 630793085445607424, 'A', '1', 'admin', '2019-10-07 15:46:31', 'admin', '2019-10-07 15:46:31', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630793085604990977, 630793085445607424, 'B', '1', 'admin', '2019-10-07 15:46:31', 'admin', '2019-10-07 15:46:31', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630793085604990978, 630793085445607424, 'C', '1', 'admin', '2019-10-07 15:46:31', 'admin', '2019-10-07 15:46:31', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630793085604990979, 630793085445607424, 'D', '1', 'admin', '2019-10-07 15:46:31', 'admin', '2019-10-07 15:46:31', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630793359186857984, 630793358951976960, 'A', '2', 'admin', '2019-10-07 15:47:36', 'admin', '2019-10-07 15:47:36', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630793359186857985, 630793358951976960, 'B', '2', 'admin', '2019-10-07 15:47:36', 'admin', '2019-10-07 15:47:36', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630793359186857986, 630793358951976960, 'C', '2', 'admin', '2019-10-07 15:47:36', 'admin', '2019-10-07 15:47:36', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630793359186857987, 630793358951976960, 'D', '2', 'admin', '2019-10-07 15:47:36', 'admin', '2019-10-07 15:47:36', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856320001642496, 630856319242473472, 'A', '1', 'admin', '2019-10-07 19:57:47', 'admin', '2019-10-07 19:57:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856320001642497, 630856319242473472, 'B', '1', 'admin', '2019-10-07 19:57:47', 'admin', '2019-10-07 19:57:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856320001642498, 630856319242473472, 'C', '1', 'admin', '2019-10-07 19:57:47', 'admin', '2019-10-07 19:57:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856320001642499, 630856319242473472, 'D', '1', 'admin', '2019-10-07 19:57:47', 'admin', '2019-10-07 19:57:47', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856451967029248, 630856451555987456, 'A', '2', 'admin', '2019-10-07 19:58:19', 'admin', '2019-10-07 19:58:19', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856451967029249, 630856451555987456, 'B', '2', 'admin', '2019-10-07 19:58:19', 'admin', '2019-10-07 19:58:19', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856451967029250, 630856451555987456, 'C', '2', 'admin', '2019-10-07 19:58:19', 'admin', '2019-10-07 19:58:19', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856451967029251, 630856451555987456, 'D', '2', 'admin', '2019-10-07 19:58:19', 'admin', '2019-10-07 19:58:19', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856496783167488, 630856496279851008, 'A', '3', 'admin', '2019-10-07 19:58:30', 'admin', '2019-10-07 19:58:30', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856496783167489, 630856496279851008, 'B', '3', 'admin', '2019-10-07 19:58:30', 'admin', '2019-10-07 19:58:30', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856496783167490, 630856496279851008, 'C', '3', 'admin', '2019-10-07 19:58:30', 'admin', '2019-10-07 19:58:30', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856496783167491, 630856496279851008, 'D', '3', 'admin', '2019-10-07 19:58:30', 'admin', '2019-10-07 19:58:30', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856557424414720, 630856556883349504, 'A', '3', 'admin', '2019-10-07 19:58:44', 'admin', '2019-10-07 19:58:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856557424414721, 630856556883349504, 'B', '3', 'admin', '2019-10-07 19:58:44', 'admin', '2019-10-07 19:58:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856557432803328, 630856556883349504, 'C', '3', 'admin', '2019-10-07 19:58:44', 'admin', '2019-10-07 19:58:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630856557432803329, 630856556883349504, 'D', '3', 'admin', '2019-10-07 19:58:44', 'admin', '2019-10-07 19:58:44', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630880823066890240, 630880822542602240, 'A', '1', 'admin', '2019-10-07 21:35:09', 'admin', '2019-10-07 21:35:09', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630880823066890241, 630880822542602240, 'B', '1', 'admin', '2019-10-07 21:35:09', 'admin', '2019-10-07 21:35:09', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630880823066890242, 630880822542602240, 'C', '1', 'admin', '2019-10-07 21:35:09', 'admin', '2019-10-07 21:35:09', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630880823066890243, 630880822542602240, 'D', '', 'admin', '2019-10-07 21:35:09', 'admin', '2019-10-07 21:35:09', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630880853412679680, 630880852892585984, 'A', '2', 'admin', '2019-10-07 21:35:17', 'admin', '2019-10-07 21:35:17', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630880853412679681, 630880852892585984, 'B', '2', 'admin', '2019-10-07 21:35:17', 'admin', '2019-10-07 21:35:17', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630880853412679682, 630880852892585984, 'C', '2', 'admin', '2019-10-07 21:35:17', 'admin', '2019-10-07 21:35:17', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630880853412679683, 630880852892585984, 'D', '2', 'admin', '2019-10-07 21:35:17', 'admin', '2019-10-07 21:35:17', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630880882231742464, 630880881720037376, 'A', '3', 'admin', '2019-10-07 21:35:24', 'admin', '2019-10-07 21:35:24', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630880882231742465, 630880881720037376, 'B', '3', 'admin', '2019-10-07 21:35:24', 'admin', '2019-10-07 21:35:24', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630880882231742466, 630880881720037376, 'C', '3', 'admin', '2019-10-07 21:35:24', 'admin', '2019-10-07 21:35:24', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (630880882231742467, 630880881720037376, 'D', '3', 'admin', '2019-10-07 21:35:24', 'admin', '2019-10-07 21:35:24', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (635557908268060672, 635557907726995456, 'A', '434', 'admin', '2019-10-20 19:20:13', 'admin', '2019-10-20 19:20:13', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (635557908268060673, 635557907726995456, 'B', '43', 'admin', '2019-10-20 19:20:13', 'admin', '2019-10-20 19:20:13', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (635557908268060674, 635557907726995456, 'C', '4', 'admin', '2019-10-20 19:20:13', 'admin', '2019-10-20 19:20:13', 0, 'EXAM', 'gitee');
INSERT INTO `exam_subject_option` VALUES (635557908276449280, 635557907726995456, 'D', '3434', 'admin', '2019-10-20 19:20:13', 'admin', '2019-10-20 19:20:13', 0, 'EXAM', 'gitee');
/*
* Copyright 2013-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-- ----------------------------
-- Table structure for exam_subject_short_answer
-- ----------------------------
DROP TABLE IF EXISTS `exam_subject_short_answer`;
CREATE TABLE `exam_subject_short_answer` (
`id` bigint(20) NOT NULL COMMENT '主键',
`category_id` bigint(20) NULL DEFAULT NULL COMMENT '分类ID',
`subject_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '题目名称',
`answer` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '参考答案',
`score` int(11) NOT NULL COMMENT '分值',
`analysis` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '解析',
`level` tinyint(4) NOT NULL COMMENT '难度等级',
`creator` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '创建人',
`create_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间',
`modifier` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '修改人',
`modify_date` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`del_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '删除标记 0:正常;1:删除',
`application_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '系统编号',
`tenant_code` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '租户编号',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '简答题表' ROW_FORMAT = Compact;
SET FOREIGN_KEY_CHECKS = 1;
|
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 06 Apr 2020 pada 10.57
-- Versi server: 10.1.37-MariaDB
-- Versi PHP: 7.2.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `pawb-ci-iqbal`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `mahasiswa`
--
CREATE TABLE `mahasiswa` (
`id_mahasiswa` int(3) NOT NULL,
`nim` int(10) NOT NULL,
`nama_mhs` varchar(30) NOT NULL,
`id_prodi` int(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `mahasiswa`
--
INSERT INTO `mahasiswa` (`id_mahasiswa`, `nim`, `nama_mhs`, `id_prodi`) VALUES
(1, 1800086, 'Muhamad Iqbal Rivaldi', 0),
(2, 1800086, 'M Iqbal Rivaldi', 1),
(3, 1800086, 'Muhamad I Rivaldi', 1),
(4, 1800086, 'Muhamad Iqbal R', 2);
-- --------------------------------------------------------
--
-- Struktur dari tabel `prodi`
--
CREATE TABLE `prodi` (
`id_prodi` int(3) NOT NULL,
`nama_prodi` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `prodi`
--
INSERT INTO `prodi` (`id_prodi`, `nama_prodi`) VALUES
(1, 'Teknik Informatika'),
(2, 'Manajemen Informatika');
-- --------------------------------------------------------
--
-- Struktur dari tabel `users`
--
CREATE TABLE `users` (
`id_users` int(3) NOT NULL,
`email` varchar(30) NOT NULL,
`nama_lengkap` varchar(35) NOT NULL,
`password` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `users`
--
INSERT INTO `users` (`id_users`, `email`, `nama_lengkap`, `password`) VALUES
(1, 'admin@gmail.com', 'administrator', '21232f297a57a5a743894a0e4a801fc3');
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `mahasiswa`
--
ALTER TABLE `mahasiswa`
ADD PRIMARY KEY (`id_mahasiswa`);
--
-- Indeks untuk tabel `prodi`
--
ALTER TABLE `prodi`
ADD PRIMARY KEY (`id_prodi`);
--
-- Indeks untuk tabel `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id_users`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `mahasiswa`
--
ALTER TABLE `mahasiswa`
MODIFY `id_mahasiswa` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT untuk tabel `prodi`
--
ALTER TABLE `prodi`
MODIFY `id_prodi` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT untuk tabel `users`
--
ALTER TABLE `users`
MODIFY `id_users` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
DROP PROCEDURE IF EXISTS clean;
DELIMITER ;;
CREATE DEFINER=web@localhost PROCEDURE clean()
COMMENT 'clean tables'
BEGIN
DECLARE $cnt_user INT DEFAULT NULL;
DECLARE $cnt_node INT DEFAULT NULL;
DECLARE $cnt_comment INT DEFAULT NULL;
DROP TEMPORARY TABLE IF EXISTS users_t, nodes_t, comments_t;
CREATE TEMPORARY TABLE users_t (
id int(10) unsigned,
PRIMARY KEY (id)
) ENGINE=MEMORY;
CREATE TEMPORARY TABLE nodes_t (
id int(10) unsigned,
PRIMARY KEY (id)
) ENGINE=MEMORY;
CREATE TEMPORARY TABLE comments_t (
id int(10) unsigned,
PRIMARY KEY (id)
) ENGINE=MEMORY;
INSERT INTO users_t SELECT id FROM users WHERE status = 0;
SELECT ROW_COUNT() INTO $cnt_user;
INSERT INTO nodes_t SELECT id FROM nodes WHERE status = 0;
SELECT ROW_COUNT() INTO $cnt_node;
IF $cnt_user > 0 AND $cnt_node > 0 THEN
INSERT INTO comments_t SELECT id FROM comments WHERE nid IN (SELECT id FROM nodes_t) OR uid IN (SELECT id FROM users_t);
SELECT ROW_COUNT() INTO $cnt_comment;
ELSE
IF $cnt_user > 0 THEN
INSERT INTO comments_t SELECT id FROM comments WHERE uid IN (SELECT id FROM users_t);
SELECT ROW_COUNT() INTO $cnt_comment;
ELSEIF $cnt_node > 0 THEN
INSERT INTO comments_t SELECT id FROM comments WHERE nid IN (SELECT id FROM nodes_t);
SELECT ROW_COUNT() INTO $cnt_comment;
ELSE
SELECT 0 INTO $cnt_comment;
END IF;
END IF;
IF $cnt_user > 0 THEN
DELETE FROM users WHERE id IN (SELECT id FROM users_t);
DELETE FROM pm USING priv_msgs AS pm JOIN users_t AS u ON (pm.from_uid = u.id OR pm.to_uid = u.id);
DELETE FROM yp_ratings WHERE uid IN (SELECT id FROM users_t);
END IF;
IF $cnt_node > 0 THEN
DELETE FROM nodes WHERE id IN (SELECT id FROM nodes_t);
DELETE FROM node_yellowpages WHERE nid IN (SELECT id FROM nodes_t);
DELETE FROM images WHERE nid IN (SELECT id FROM nodes_t);
DELETE FROM yp_ratings WHERE nid IN (SELECT id FROM nodes_t);
END IF;
IF $cnt_comment > 0 THEN
DELETE FROM comments WHERE id IN (SELECT id FROM comments_t);
DELETE FROM images WHERE cid IN (SELECT id FROM comments_t);
END IF;
DROP TEMPORARY TABLE users_t, nodes_t, comments_t;
END ;;
DELIMITER ;
|
/*
Generate the following two result sets:
Query an alphabetically ordered list of all names in OCCUPATIONS, immediately followed by the first letter of each profession as a parenthetical (i.e.: enclosed in parentheses). For example: AnActorName(A), ADoctorName(D), AProfessorName(P), and ASingerName(S).
Query the number of ocurrences of each occupation in OCCUPATIONS. Sort the occurrences in ascending order, and output them in the following format:
There are a total of [occupation_count] [occupation]s.
where [occupation_count] is the number of occurrences of an occupation in OCCUPATIONS and [occupation] is the lowercase occupation name. If more than one Occupation has the same [occupation_count], they should be ordered alphabetically.
Note: There will be at least two entries in the table for each type of occupation.
Input Format
The OCCUPATIONS table is described as follows: Occupation will only contain one of the following values: Doctor, Professor, Singer or Actor.
Sample Input
An OCCUPATIONS table that contains the following records:
Sample Output
Ashely(P)
Christeen(P)
Jane(A)
Jenny(D)
Julia(A)
Ketty(P)
Maria(A)
Meera(S)
Priya(S)
Samantha(D)
There are a total of 2 doctors.
There are a total of 2 singers.
There are a total of 3 actors.
There are a total of 3 professors.
Explanation
The results of the first query are formatted to the problem description's specifications.
The results of the second query are ascendingly ordered first by number of names corresponding to each profession (
), and then alphabetically by profession (, and ).
*/
SELECT (CONCAT(Name, '(', left(Occupation, 1), ')')) AS N
FROM
Occupations
ORDER BY
Name;
SELECT (CONCAT('There are a total of ', COUNT(Occupation), ' ', lower(Occupation),'s.'))
FROM
Occupations
GROUP BY
Occupation
ORDER BY
COUNT(Occupation),
Occupation;
|
--* return row
SELECT
$1::int AS "number",
$2::text AS str
|
-- boundary1.test
--
-- db eval {
-- SELECT a FROM t1 WHERE rowid >= 32768 ORDER BY rowid
-- }
SELECT a FROM t1 WHERE rowid >= 32768 ORDER BY rowid
|
--TEST: test with reuse_oid tables
drop table if exists p_disc_collection;
create table p_disc_collection(
col1 set(int),
col2 multiset(smallint),
col3 list(timestamp),
col4 sequence(datetime),
num smallint
);
insert into p_disc_collection values({1, 2, 3}, {1, 1, 3}, {'1990-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 100);
insert into p_disc_collection values({1, 2, 3}, {4, 4}, {'1991-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 60);
insert into p_disc_collection values({1, 2, 3}, {1, 1, 3}, {'1992-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 70);
insert into p_disc_collection values({1, 2, 3}, {4, 4}, {'1993-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 60);
insert into p_disc_collection values({1, 2, 3}, {1, 1, 3}, {'1994-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 50);
insert into p_disc_collection values({3, 5}, {4, 4}, {'1995-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 60);
insert into p_disc_collection values({3, 5}, {1, 1, 3}, {'1996-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 70);
insert into p_disc_collection values({3, 5}, {1, 1, 3}, {'1997-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 60);
insert into p_disc_collection values({3, 5}, {8, 10}, {'1998-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 60);
insert into p_disc_collection values({7, 9}, {1, 1, 3}, {'1999-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 70);
insert into p_disc_collection values({7, 9}, {1, 1, 3}, {'2000-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 65);
insert into p_disc_collection values({7, 9}, {8, 10}, {'2001-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 60);
insert into p_disc_collection values({9, 11, 13}, {1, 1, 3}, {'2002-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 60);
insert into p_disc_collection values({11, 12, 15}, {1, 1, 3}, {'2003-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 80);
insert into p_disc_collection values({11, 12, 15}, {4, 4}, {'2004-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 70);
insert into p_disc_collection values({11, 12, 15}, {1, 1, 3}, {'2005-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 85);
insert into p_disc_collection values({11, 12, 15}, {1, 1, 3}, {'2006-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 60);
insert into p_disc_collection values({11, 12, 15}, {8, 10}, {'2007-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 90);
insert into p_disc_collection values({11, 12, 15}, {1, 1, 3}, {'2008-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 60);
insert into p_disc_collection values({11, 12, 15}, {1, 1, 3}, {'2009-1-1 11:11:11'}, {datetime'2011-11-11 11:11:11.111'}, 63);
--TEST: OVER() clause
--TEST: set
select col1, col2, percentile_disc(0.333333) within group (order by col1) over() p_disc from p_disc_collection order by 1, 2, 3;
--TEST: multiset
select col2, col3, percentile_disc(0.77) within group (order by col2) over() p_disc from p_disc_collection order by 1, 2, 3;
--TEST: list with where clause
select col3, col4, percentile_disc(0.89) within group (order by col3) over() p_disc from p_disc_collection where col1 > {1, 2, 3} order by 1, 2, 3;
--TEST: sequence
select col4, col1, percentile_disc(0.21) within group (order by col4) over() p_disc from p_disc_collection order by 1, 2, 3;
--TEST: wrong type of arguments
select percentile_disc(col1) within group (order by num) over() from p_disc_collection;
select percentile_disc(col2) within group (order by num) over() from p_disc_collection;
select percentile_disc(col3) within group (order by num) over() from p_disc_collection;
select percentile_disc(col4) within group (order by num) over() from p_disc_collection;
--TEST: OVER(PARTITION BY) clause
--TEST: partition by set
select col1, col2, col3, col4, percentile_disc(0.3) within group (order by num desc) over(partition by col1) p_disc from p_disc_collection order by 1, 2, 3, 4;
--TEST: partition by multiset
select col1, col2, col3, col4, percentile_disc(0.9) within group (order by num) over(partition by col2) p_disc from p_disc_collection order by 2, 1, 3, 4;
--TEST: partition by list
select col1, col2, col3, col4, percentile_disc(0.6) within group (order by num asc) over(partition by col3) p_disc from p_disc_collection order by 3, 1, 2, 4;
--TEST: partition by sequence
select col1, col2, col3, col4, percentile_disc(1) within group (order by num) over(partition by col4) p_disc from p_disc_collection order by 4, 1, 2, 3, 5;
--TEST: [er] OVER(ORDER BY) clause
select col1, percentile_disc(0.3) within group (order by num) over(order by col3) from p_disc_collection order by 1, 2, 3;
--TEST: [er] OVER(PARTITION BY ORDER BY) clause
select col1, col2, col3, percentile_disc(0.7) within group (order by num desc) over(partition by col1 order by col1, col2, col3) from p_disc_collection;
--TEST: [er] out-of-range
select percentile_disc(-10) within group (order by num) over(partition by col2) from p_disc_collection;
select percentile_disc(2) within group (order by num) over(partition by col1, col3) from p_disc_collection;
select percentile_disc(100) within group (order by num desc) over(partition by col4) from p_disc_collection;
drop table p_disc_collection;
|
--Undercover Catalogue
--David Fowler
--Version 0.4.2 - 06 February 2020
--Module: TraceFlags
--Script: Get
CREATE TABLE #TraceFlags
(
TraceFlag INT,
Status BIT,
Global BIT,
Session BIT
)
INSERT INTO #TraceFlags
EXEC sp_executesql N'DBCC tracestatus'
SELECT @@SERVERNAME AS ServerName, TraceFlag
FROM #TraceFlags
|
use mydb;
GO
IF (NOT EXISTS (SELECT *
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'dbo'
AND TABLE_NAME = 'Persons'))
BEGIN
CREATE TABLE Persons (
PersonID int,
LastName varchar(255),
FirstName varchar(255),
Address varchar(255),
City varchar(255)
);
END
|
SELECT COUNT(*) FROM ictrp.ictrp_full_weekly_data;
-- \COPY ictrp."ictrp_weekly_data" FROM 'ICTRPWeek31January2022.csv' DELIMITER ',' CSV QUOTE AS '"' HEADER;
-- \COPY ictrp."ictrp_full_weekly_data" FROM 'ICTRPWeek31January2022.csv' DELIMITER ',' CSV QUOTE AS '"' HEADER;
-- SELECT COUNT(*) FROM ictrp.ictrp_full_weekly_data;
-- ####################### Trasfomation Script Starts Here ##################
-- Deduplication of Source Data
-- as mentioned above ictrp_full_weekly_data have lot of duplicates, so it need to be clean all the
-- unnecessary data
-- command to delete the duplicates
delete from ictrp.ictrp_full_weekly_data i
using
(select trialid, max(ctid) as max_ctid from ictrp.ictrp_full_weekly_data group by trialid) t
where i.ctid <> t.max_ctid
and i.trialid = t.trialid;
-- Drop the table in ictrp schema, so as to create table with new data.
DROP TABLE ictrp.ictrp_rpt;
-- Create Table in ictrp
CREATE TABLE ictrp.ictrp_rpt AS
SELECT * FROM ictrp.ictrp_full_weekly_data;
-- Data Transformation in Postgres ---
-- remove the "" from key columns , need to include all columns once the data loaded and duplicates r removed.
-- Data cleaning by removing un wanted symbols like "" , : , <br>
---Updating Columns by removing " " in records
update ictrp.ictrp_rpt
set study_type = trim(both '" "' from study_type) ,
phase = trim(both '" "' from phase) ,
date_registration = trim(both '" "' from date_registration) ,
date_enrollement = trim(both '" "' from date_enrollement) ,
recruitment_status = trim(both '" "' from recruitment_status) ,
primary_sponsor = trim(both '" "' from primary_sponsor) ,
countries = trim(both '" "' from countries) ,
age_min = trim(both '" "' from age_min) ,
age_max = trim(both '" "' from age_max) ,
secondaryids = trim(both '" "' from secondaryids)
,exclusion_criteria = trim(both '" "' from exclusion_criteria)
,primary_outcome = trim(both '" "' from primary_outcome)
,inclusion_criteria = trim(both '" "' from inclusion_criteria)
,gender = trim(both '" "' from gender)
,conditions = trim(both '" "' from conditions)
,url = trim(both '" "' from url)
,public_title = trim(both '" "' from public_title)
,scientific_title = trim(both '" "' from scientific_title)
,study_design = trim(both '" "' from study_design)
,target_size = trim(both '" "' from target_size);
update ictrp.ictrp_rpt set conditions = trim(leading ';' from conditions) ;
update ictrp.ictrp_rpt set conditions = trim(both '<br>' from conditions) ;
--Adding New Columns and updating data to new columns
-- add new column here "conditions_std"
ALTER TABLE ictrp.ictrp_rpt
ADD conditions_std character varying;
update ictrp.ictrp_rpt set conditions_std = 'Covid-19'
where conditions ilike '%Covid%19%'
or conditions='COVID'
or conditions ilike 'SARS-CoV%'
or conditions ilike 'SARS-CoV-2'
or conditions ilike '%B972- Coronavirus as the cause of diseases classified elsewhere%';
update ictrp.ictrp_rpt set conditions_std = 'O- Medical and Surgical'
where conditions ilike 'Health Condition 1: O- Medical and Surgical%';
update ictrp.ictrp_rpt set conditions_std = 'Atrial Fibrillation'
where conditions ilike 'Atrial Fibrillation%';
update ictrp.ictrp_rpt set conditions_std = 'Diabetes Mellitus'
where conditions ilike 'Diabetes Mellitus%'
or conditions ilike 'Diabetes%'
or conditions ilike 'Type 2 Diabetes%'
or conditions ilike 'Type 1 Diabetes%'
or conditions ilike 'Health Condition 1: E119- Type 2 diabetes mellitus without complications%';
update ictrp.ictrp_rpt set conditions_std = 'Knee Osteoarthritis'
where conditions ilike 'Knee Osteoarthritis%'
or conditions ilike 'Knee Osteoarthritis%'
or conditions ilike 'Osteoarthritis%'
or conditions ilike 'Knee%'
or conditions ilike 'Total Knee%'
or conditions ilike 'Osteoarthritis, Knee%'
or conditions ilike 'Health Condition 1: M179- Osteoarthritis of knee, unspecified%';
update ictrp.ictrp_rpt set conditions_std = 'Rheumatoid Arthritis'
where conditions ilike 'Rheumatoid Arthritis%'; -- 4042 updated
update ictrp.ictrp_rpt set conditions_std = 'Diseases of the musculo-skeletal system and connective tissue'
where conditions ilike 'Diseases of the musculo-skeletal system and connective tissue %'
or conditions ilike 'Diseases of the musculoskeletal system and connective tissue%'
or conditions ilike 'Musculoskeletal Diseases;Musculoskeletal Diseases%' ;
update ictrp.ictrp_rpt set conditions_std = 'Healthy Volunteers'
where conditions ilike 'Healthy'
or conditions ilike 'Healthy adult%'
or conditions ilike 'Healthy Voluntee%'
or conditions ilike 'Healthy woman%'
or conditions ilike 'Healthy person%'
or conditions ilike 'Healthy individuals%'
or conditions ilike 'Normal healthy volunteers%';
update ictrp.ictrp_rpt set conditions_std = 'Not Applicable'
where conditions ilike 'N/A%' or conditions ilike 'None%' or conditions ilike 'Not Applicable%' or conditions
ilike 'NULL%' or length(conditions) = 0;
update ictrp.ictrp_rpt set conditions_std = 'Cancer'
where conditions ilike 'Cance';
update ictrp.ictrp_rpt set conditions_std = 'Breast Cancer'
where conditions ilike 'Breast cance%'
or conditions ilike 'Breast Neoplasm Female%'
or conditions ilike 'Malignant Neoplasm of Breast%'
or conditions ilike 'Advanced Breast Cance%'
or conditions ilike 'Triple-negative Breast Cance%'
or conditions ilike 'Health Condition 1: C509- Malignant neoplasm of breast of unspecified site%';
update ictrp.ictrp_rpt set conditions_std = 'Cervical Cancer'
where conditions ilike 'Cervical cance%'
or conditions ilike 'Advanced Cervical Cance';
update ictrp.ictrp_rpt set conditions_std = 'Prostate Cancer'
where conditions ilike 'Prostate Cance%'
or conditions ilike 'Recurrent Prostate Cance';
update ictrp.ictrp_rpt set conditions_std = 'Pancreatic Cancer'
where conditions ilike 'Pancreatic Cance%'
or conditions ilike 'Advanced Pancreatic Cance%';
update ictrp.ictrp_rpt set conditions_std = 'Gastric Cancer'
where conditions ilike 'Gastric cance%'
or conditions ilike 'unresectable advanced gastric cance%'
or conditions ilike 'Early Gastric Cancer%';
/*
* Colorectal Cancer merged with Rectal cancer
*
* update ictrp.ictrp_rpt set conditions_std = 'Colorectal Cancer'
where conditions ilike 'colorectal cance%'
or conditions ilike 'Metastatic Colorectal Cancer%%';
*/
update ictrp.ictrp_rpt set conditions_std = 'Rectal Cancer'
where conditions ilike 'Rectal Cance%'
or conditions ilike 'Recurrent Rectal Cance%'
or conditions ilike 'Locally Advanced Rectal Cance%'
or conditions ilike 'colorectal cance%'
or conditions ilike 'Metastatic Colorectal Cancer%%';
update ictrp.ictrp_rpt set conditions_std = 'Bladder Cancer'
where conditions ilike 'Bladder Cance%';
update ictrp.ictrp_rpt set conditions_std = 'Carcinoma'
where conditions ilike 'carcinoma%';
update ictrp.ictrp_rpt set conditions_std = 'Hepatocellular Carcinoma'
where conditions ilike 'Hepatocellular Carcinoma%';
update ictrp.ictrp_rpt set conditions_std = 'Solid Tumors'
where conditions ilike 'Advanced Solid Tumo%'
or conditions ilike 'Solid Tumo%'
or conditions ilike 'Solid Tumor%';
-----------------------------------------------------------------
update ictrp.ictrp_rpt set conditions_std = 'Neoplasms'
where conditions ilike 'Neoplasms%';
update ictrp.ictrp_rpt set conditions_std = 'Analgesia & Anesthesia'
where conditions ilike 'Analgesia%'
or conditions ilike 'Anesthesia%'
or conditions ilike 'Anaesthesia';
update ictrp.ictrp_rpt set conditions_std = 'Diseases of the digestive system'
where conditions ilike 'Diseases of the digestive system%';
update ictrp.ictrp_rpt set conditions_std = 'Gastroenteritis'
where conditions ilike 'Gastroenteritis%'
or conditions ilike 'Appendicitis%'
or conditions ilike 'Colitis%'
or conditions ilike 'Dysentery%'
or conditions ilike 'Enteritis%'
or conditions ilike 'Enterocolitis%'
or conditions ilike 'Esophagitis %'
or conditions ilike 'Gastritis%'
or conditions ilike 'Mucositis%'
or conditions ilike 'Proctitis%'
or conditions ilike 'Inflammatory Bowel%';
update ictrp.ictrp_rpt set conditions_std = 'Diet'
where conditions ilike 'Diet%';
update ictrp.ictrp_rpt set conditions_std = 'Obesity'
where conditions ilike 'Obesity%';
update ictrp.ictrp_rpt set conditions_std = 'Liver Transplant'
where conditions ilike 'Liver Transplant%';
update ictrp.ictrp_rpt set conditions_std = 'Infertility'
where conditions ilike 'Infertility%';
update ictrp.ictrp_rpt set conditions_std = 'Lung Cancer'
where conditions ilike 'Lung Cance%';
update ictrp.ictrp_rpt set conditions_std = 'Non-Small Cell Lung Cancer'
where conditions ilike 'Non-small Cell Lung Cance%';
update ictrp.ictrp_rpt set conditions_std = 'Chronic Obstructive Pulmonary Disease'
where conditions ilike 'Chronic Obstructive Pulmonary Disease%'
or conditions ilike 'COPD%'
or conditions ilike 'Asthma%'
or conditions ilike 'Bronchial asthma'
or conditions ilike 'Allergic asthma%'
or conditions ilike 'onchial asthma'
or conditions ilike 'Cough Variant Asthma'
or conditions ilike 'Paediatric asthma';
update ictrp.ictrp_rpt set conditions_std = 'Tuberculosis'
where conditions ilike 'Tuberculosis%';
update ictrp.ictrp_rpt set conditions_std = 'Diseases of the circulatory system'
where conditions ilike 'Diseases of the circulatory system%';
update ictrp.ictrp_rpt set conditions_std = 'Heart Failure'
where conditions ilike 'Heart Failure%';
update ictrp.ictrp_rpt set conditions_std = 'Stroke'
where conditions ilike 'Stroke%'
or conditions ilike 'Acute stroke%'; -- 4370 updated
update ictrp.ictrp_rpt set conditions_std = 'Myocardial'
where conditions ilike 'Myocardial%';
update ictrp.ictrp_rpt set conditions_std = 'Pericarditis'
where conditions ilike 'Pericarditis%';
update ictrp.ictrp_rpt set conditions_std = 'Multiple Myeloma'
where conditions ilike 'Multiple Myeloma%';
update ictrp.ictrp_rpt set conditions_std = 'Hypertension'
where conditions ilike 'Hypertension%'
or conditions ilike 'Health Condition 1: I10- Essential (primary) hypertension%';
update ictrp.ictrp_rpt set conditions_std = 'Coronary Artery Disease'
where conditions ilike 'Coronary Artery Disease%';
update ictrp.ictrp_rpt set conditions_std = 'Diseases of the nervous system'
where conditions ilike 'Diseases of the nervous system%'
or conditions ilike 'Autism Spectrum Disorde%';
update ictrp.ictrp_rpt set conditions_std = 'Parkinson Disease'
where conditions ilike 'Parkinson%'; -- 3624 updated
update ictrp.ictrp_rpt set conditions_std = 'Alzheimer Disease'
where conditions ilike 'Alzheimer%';
update ictrp.ictrp_rpt set conditions_std = 'Major Depressive Disorder'
where conditions ilike 'Major Depressive Disorde%'
or conditions ilike 'Schizophrenia%';
update ictrp.ictrp_rpt set conditions_std = 'Mental Issues'
where conditions ilike 'Stress%'
or conditions ilike 'Depression%'
or conditions ilike 'Anxiety%';
update ictrp.ictrp_rpt set conditions_std = 'Atopic Dermatitis'
where conditions ilike 'Atopic Dermatitis%';
update ictrp.ictrp_rpt set conditions_std = 'Pain'
where conditions ilike 'Pain%'
or conditions ilike 'Chronic Pain%' ;
--- CONDITIONS END -----
-- populate source registry names
-- add new column name "source_register_cd_drvd"
ALTER TABLE ictrp.ictrp_rpt
ADD source_register_cd_drvd character varying;
update ictrp.ictrp_rpt d
set source_register_cd_drvd = source_register_cd
from ictrp.mst_source_register m
where d.trialid like '%'||m.source_register_cd||'%' and source_register_cd_drvd is null;
update ictrp.ictrp_rpt d
set source_register_cd_drvd = 'NTR'
where source_register_cd_drvd is null and trialid like 'NL%';
update ictrp.ictrp_rpt d
set source_register_cd_drvd = 'REBEC'
where source_register_cd_drvd is null and trialid like 'RBR%';
update ictrp.ictrp_rpt d
set source_register_cd_drvd = 'REPEC'
where source_register_cd_drvd is null and trialid like 'PER%';
update ictrp.ictrp_rpt d
set source_register_cd_drvd = 'ChiCTR'
where source_register_cd_drvd is null and trialid like 'chictr%';
update ictrp.ictrp_rpt d
set source_register_cd_drvd = 'CRIS'
where source_register_cd_drvd is null and trialid like 'KCT%';
-- source_register_cd_drvd end here.
--- update source_register_iso_cd start
-- add new column "source_register_iso_cd"
ALTER TABLE ictrp.ictrp_rpt
ADD source_register_iso_cd character varying;
update ictrp.ictrp_rpt d
set source_register_iso_cd = iso_3_country_cd
from ictrp.mst_source_register m
where m.source_register_cd = d.source_register_cd_drvd ; -- 735344 records updated
--- update source_register_iso_cd end.
-- update the date formats as standard date time column data type
-- # Date format standardization Start
-- add two more columns here "date_registration_std", "date_enrollement_std"
ALTER TABLE ictrp.ictrp_rpt
ADD date_registration_std character varying;
ALTER TABLE ictrp.ictrp_rpt
ADD date_enrollement_std character varying;
-- srilanka
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'YYYY-MM-DD')
, date_enrollement_std = to_date(date_enrollement,'YYYY-MM-DD')
where trialid like 'SLCTR%' ; -- 392 updated
-- india
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD-MM-YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD-MM-YYYY')
where trialid like 'CTRI%' ; -- 37699 updated
-- Cuban Public Registry of Clinical Trials ; -- need to exclude non-numeric data
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = ( case when date_enrollement is not null then to_date(date_enrollement,'DD/MM/YYYY')
else null end )
where trialid like 'RPCEC%' and date_enrollement ~ '^[0-9].*' ; -- 394 updated
-- IRCT
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'YYYY-MM-DD')
, date_enrollement_std = to_date(date_enrollement,'YYYY-MM-DD')
where trialid like 'IRCT%' ; -- 28253 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
where trialid like 'TCTR%' ; -- 6077 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
where trialid like 'NTR%' ; -- 7482 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
where trialid like 'DRKS%' ; -- 12871 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
where trialid like 'CRIS%' ; -- 0 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
-- , date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
-- format is not correct for date_enrollement ..
where trialid like 'NCT%' ; -- 386730 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
where trialid like 'LBCTR%' ; -- 116 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
where trialid like 'ISRCTN%' ; -- 20989 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY') -- "29/09/2017"
-- , date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
-- format is not correct for date_enrollement ..
where trialid like 'JPRN%' ; -- 50464 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
where trialid like 'REPEC%'; --- 0 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'YYYY-MM-DD')
, date_enrollement_std = to_date(date_enrollement,'YYYY-MM-DD')
where trialid like 'ChiCTR%' or trialid like 'chictr%'; -- 40665 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'YYYY-MM-DD')
, date_enrollement_std = to_date(date_enrollement,'YYYY-MM-DD')
where trialid like 'REBEC%'; -- 0 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
where trialid like 'PACTR%'; -- 3120 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
where trialid like 'EUCTR%'; -- 103221 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
where trialid like 'ACTRN%'; -- 21211 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'YYYY-MM-DD') -- 6229 updated
-- date_enrollement_std = to_date(date_enrollement,'YYYY-MM-DD')
where trialid like 'KCT%'; -- some format issues
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
where trialid like 'NL%'; -- 2335 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
where trialid like 'PE%'; -- 1958 updated
update ictrp.ictrp_rpt
set date_registration_std = to_date(date_registration,'DD/MM/YYYY')
, date_enrollement_std = to_date(date_enrollement,'DD/MM/YYYY')
where trialid like 'RB%'; -- 5137 updated
-- update '' dates trasnlated to 0001 year back to NULL .
--update ictrp.ictrp_rpt set date_registration_std = null
--where to_char(date_registration_std,'YYYY') ='0001'; -- some format issue
-- -- --- updated end .
-- # Date format standardization End
---One more column addtion and updatation.
-- # Start : convert the Target size to Integer , Exclude nulls and 0 length strings
-- Add new column "target_size_std"
ALTER TABLE ictrp.ictrp_rpt
ADD target_size_std character varying;
update ictrp.ictrp_rpt
set target_size_std = cast (target_size AS BIGINT)
where source_register_cd_drvd in ('NCT','EUCTR','JPRN',
'CTRI','IRCT','ACTRN','ISRCTN','DRKS','NTR','CRIS','TCTR','REBEC','PACTR','REPEC','LBCTR')
and length (target_size) > 0 and target_size is not null and target_size <> 'null';
-- # End
-- to change the data type of columns date_registration_std and date_enrollement_std
ALTER TABLE ictrp.ictrp_rpt ALTER COLUMN date_registration_std TYPE DATE
using to_date(date_registration_std, 'YYYY-MM-DD');
ALTER TABLE ictrp.ictrp_rpt ALTER COLUMN date_enrollement_std TYPE DATE
using to_date(date_enrollement_std, 'YYYY-MM-DD');
--- Finished ---
-- ############# Transformation Ends Here ####################
-- ############# CTRI Update Starts Here ####################
/* This Script is only for updation of CTRI
*
*/
update ictrp.ictrp_rpt set conditions_std = 'Solid Tumors'
where trialid like 'CTRI%' and
(conditions ilike 'Advanced Solid Tumo%'
or conditions ilike 'Solid Tumo%'
or conditions ilike 'Solid Tumor%');
update ictrp.ictrp_rpt set conditions_std = 'O- Medical and Surgical'
where trialid like 'CTRI%' and conditions ilike '%O- Medical and Surgical%';
update ictrp.ictrp_rpt set conditions_std = 'Atrial Fibrillation'
where trialid like 'CTRI%' and
(conditions ilike 'Atrial Fibrillation%');
update ictrp.ictrp_rpt set conditions_std = 'Breast Cancer'
where trialid like 'CTRI%' and
conditions ilike '%Breast%';
update ictrp.ictrp_rpt set conditions_std = 'Cervical Cancer'
where trialid like 'CTRI%' and conditions ilike '%Cervical%';
update ictrp.ictrp_rpt set conditions_std = 'Rectal Cancer'
where trialid like 'CTRI%' and conditions ilike '%Rectal%';
update ictrp.ictrp_rpt set conditions_std = 'Covid-19'
where trialid like 'CTRI%' and
(conditions ilike '%Covid%19%'
or conditions='COVID'
or conditions ilike 'SARS-CoV%'
or conditions ilike 'SARS-CoV-2'
or conditions ilike '%Coronavirus%');
update ictrp.ictrp_rpt set conditions_std = 'Diabetes Mellitus'
where trialid like 'CTRI%' and conditions ilike '%Diabetes%';
update ictrp.ictrp_rpt set conditions_std = 'Gastric Cancer'
where trialid like 'CTRI%' and conditions ilike '%Gastric cance%';
update ictrp.ictrp_rpt set conditions_std = 'Hepatocellular Carcinoma'
where trialid like 'CTRI%' and conditions ilike '%Hepatocellular Carcinoma%';
update ictrp.ictrp_rpt set conditions_std = 'Knee Osteoarthritis'
where trialid like 'CTRI%'
and (conditions ilike '%Osteoarthritis%' or conditions ilike '%Knee%') ;
update ictrp.ictrp_rpt set conditions_std = 'Diseases of the musculo-skeletal system and connective tissue'
where trialid like 'CTRI%' and
(conditions ilike '%musculo-skeletal%' or conditions ilike '%musculoskeletal%');
update ictrp.ictrp_rpt set conditions_std = 'Prostate Cancer'
where trialid like 'CTRI%' and conditions ilike '%Prostate Cance%';
update ictrp.ictrp_rpt set conditions_std = 'Rheumatoid Arthritis'
where trialid like 'CTRI%' and conditions ilike '%Rheumatoid Arthritis%';
/*
update ictrp.ictrp_rpt set conditions_std = 'Healthy Volunteers'
where trialid like 'CTRI%' and
(or conditions ilike 'Healthy'
or conditions ilike 'Healthy adult%'
or conditions ilike 'Healthy Voluntee%'
or conditions ilike 'Healthy woman%'
or conditions ilike 'Healthy person%'
or conditions ilike 'Healthy individuals%'
or conditions ilike 'Normal healthy volunteers%');-- 5811 updated
*/
update ictrp.ictrp_rpt set conditions_std = 'Pancreatic Cancer'
where trialid like 'CTRI%' and conditions ilike '%Pancreatic Cance%';
update ictrp.ictrp_rpt set conditions_std = 'Cancer'
where trialid like 'CTRI%' and conditions ilike 'Cance%';
update ictrp.ictrp_rpt set conditions_std = 'Neoplasms'
where trialid like 'CTRI%' and conditions ilike 'Neoplasms%';
update ictrp.ictrp_rpt set conditions_std = 'Analgesia & Anesthesia'
where trialid like 'CTRI%' and
(conditions ilike '%Analgesia%'
or conditions ilike '%Anesthesia%'
or conditions ilike '%Anaesthesia');
update ictrp.ictrp_rpt set conditions_std = 'Diseases of the digestive system'
where trialid like 'CTRI%' and conditions ilike '%Diseases of the digestive system%';
update ictrp.ictrp_rpt set conditions_std = 'Gastroenteritis'
where trialid like 'CTRI%' and
(conditions ilike '%Gastroenteritis%'
or conditions ilike '%Appendicitis%'
or conditions ilike '%Colitis%'
or conditions ilike '%Dysentery%'
or conditions ilike '%Enteritis%'
or conditions ilike '%Enterocolitis%'
or conditions ilike '%Esophagitis %'
or conditions ilike '%Gastritis%'
or conditions ilike '%Mucositis%'
or conditions ilike '%Proctitis%'
or conditions ilike '%Inflammatory Bowel%');
update ictrp.ictrp_rpt set conditions_std = 'Bladder Cancer'
where trialid like 'CTRI%' and conditions ilike '%Bladder Cance%';
update ictrp.ictrp_rpt set conditions_std = 'Diet'
where trialid like 'CTRI%' and conditions ilike '%Diet%';
update ictrp.ictrp_rpt set conditions_std = 'Obesity'
where trialid like 'CTRI%' and conditions ilike '%Obesity%';
update ictrp.ictrp_rpt set conditions_std = 'Liver Transplant'
where trialid like 'CTRI%' and conditions ilike '%Liver Transplant%';
update ictrp.ictrp_rpt set conditions_std = 'Infertility'
where trialid like 'CTRI%' and conditions ilike '%Infertility%';
update ictrp.ictrp_rpt set conditions_std = 'Lung Cancer'
where trialid like 'CTRI%' and conditions ilike '%Lung Cance%';
update ictrp.ictrp_rpt set conditions_std = 'Non-Small Cell Lung Cancer'
where trialid like 'CTRI%' and conditions ilike '%Non-small Cell Lung Cance%';
update ictrp.ictrp_rpt set conditions_std = 'Chronic Obstructive Pulmonary Disease'
where trialid like 'CTRI%' and
(conditions ilike '%Chronic Obstructive Pulmonary Disease%'
or conditions ilike '%Obstructive Pulmonary Disease%'
or conditions ilike '%COPD%'
or conditions ilike '%Asthma%');
update ictrp.ictrp_rpt set conditions_std = 'Tuberculosis'
where trialid like 'CTRI%' and conditions ilike '%Tuberculosis%';
update ictrp.ictrp_rpt set conditions_std = 'Diseases of the circulatory system'
where trialid like 'CTRI%' and conditions ilike '%Diseases of the circulatory system%';
update ictrp.ictrp_rpt set conditions_std = 'Heart Failure'
where trialid like 'CTRI%' and conditions ilike '%Heart Failure%';
update ictrp.ictrp_rpt set conditions_std = 'Stroke'
where trialid like 'CTRI%' and conditions ilike '%Stroke%'
or conditions ilike 'Acute stroke%';
update ictrp.ictrp_rpt set conditions_std = 'Myocardial'
where trialid like 'CTRI%' and conditions ilike '%Myocardial%';
update ictrp.ictrp_rpt set conditions_std = 'Pericarditis'
where trialid like 'CTRI%' and conditions ilike '%Pericarditis%';
update ictrp.ictrp_rpt set conditions_std = 'Multiple Myeloma'
where trialid like 'CTRI%' and conditions ilike '%Multiple Myeloma%';
update ictrp.ictrp_rpt set conditions_std = 'Hypertension'
where trialid like 'CTRI%' and conditions ilike '%Hypertension%';
update ictrp.ictrp_rpt set conditions_std = 'Coronary Artery Disease'
where trialid like 'CTRI%' and conditions ilike '%Coronary Artery Disease%';
update ictrp.ictrp_rpt set conditions_std = 'Diseases of the nervous system'
where trialid like 'CTRI%' and
(conditions ilike '%Diseases of the nervous system%'
or conditions ilike '%Autism Spectrum Disorde%');
update ictrp.ictrp_rpt set conditions_std = 'Parkinson Disease'
where trialid like 'CTRI%' and conditions ilike '%Parkinson%';
update ictrp.ictrp_rpt set conditions_std = 'Alzheimer Disease'
where trialid like 'CTRI%' and conditions ilike '%Alzheimer%';
update ictrp.ictrp_rpt set conditions_std = 'Major Depressive Disorder'
where trialid like 'CTRI%' and
(conditions ilike '%Major Depressive Disorde%'
or conditions ilike '%Schizophrenia%');
update ictrp.ictrp_rpt set conditions_std = 'Mental Issues'
where trialid like 'CTRI%' and
( conditions ilike 'Stress%'
or conditions ilike 'Depression%'
or conditions ilike 'Anxiety%');
update ictrp.ictrp_rpt set conditions_std = 'Atopic Dermatitis'
where trialid like 'CTRI%' and conditions ilike '%Atopic Dermatitis%';
update ictrp.ictrp_rpt set conditions_std = 'Pain'
where trialid like 'CTRI%' and conditions ilike '%Pain%';
-- ############# CTRI Update Ends Here ####################
|
UPDATE herramientas.categoria_revendedora SET descripcion = 'CATEGORIA_TEST01' WHERE id = 1;
UPDATE herramientas.categoria_revendedora SET descripcion = 'CATEGORIA_TEST02' WHERE id = 2;
UPDATE herramientas.categoria_revendedora SET descripcion = 'CATEGORIA_TEST03' WHERE id = 3;
UPDATE herramientas.categoria_revendedora SET descripcion = 'CATEGORIA_TEST04' WHERE id = 4;
|
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 17, 2022 at 04:05 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 7.4.27
SET FOREIGN_KEY_CHECKS=0;
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `db_saw`
--
--
-- Dumping data for table `tjm_menu`
--
INSERT INTO `tjm_menu` (`id`, `parent_menu`, `nama_menu`, `url_menu`, `icon`, `urutan`, `status`, `type`) VALUES
(32, 1, 'Periode', 'admin/periode', 'fa fa-book', 2, 1, 'Admin'),
(33, 1, 'Karyawan', 'admin/karyawan', 'fa fa-user', 3, 1, 'Admin'),
(34, 1, 'Nilai Karyawan', 'admin/nilai', 'fa fa-book', 4, 1, 'Admin');
SET FOREIGN_KEY_CHECKS=1;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
=# CREATE INDEX btreeidx ON tbloom (i1, i2, i3, i4, i5, i6);
CREATE INDEX
=# SELECT pg_size_pretty(pg_relation_size('btreeidx'));
pg_size_pretty
----------------
3976 kB
(1 row)
=# EXPLAIN ANALYZE SELECT * FROM tbloom WHERE i2 = 898732 AND i5 = 123451;
QUERY PLAN
-------------------------------------------------------------------&zwsp;-----------------------------------
Seq Scan on tbloom (cost=0.00..2137.00 rows=2 width=24) (actual time=12.805..12.805 rows=0 loops=1)
Filter: ((i2 = 898732) AND (i5 = 123451))
Rows Removed by Filter: 100000
Planning Time: 0.138 ms
Execution Time: 12.817 ms
(5 rows)
|
-- @testpoint:openGauss关键字Least(非保留),作为列名不带双引号,Least大小写混合,建表成功
drop table if exists Explain_test;
create table Explain_test(
c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer,
c_real real, c_double real,
c_decimal decimal(38), c_number number(38), c_numeric numeric(38),
c_char char(50) default null, c_varchar varchar(20), c_varchar2 varchar2(4000),
c_date date, c_datetime date, c_timestamp timestamp,
Least text
)
PARTITION BY RANGE (c_integer)
(
partition P_20180121 values less than (0),
partition P_20190122 values less than (50000),
partition P_20200123 values less than (100000),
partition P_max values less than (maxvalue)
);
select * from Explain_test;
drop table Explain_test;
--openGauss关键字Least(非保留),作为列名不带双引号,Least大小匹配,建表成功
drop table if exists Collation_Catalog_test;
create table Collation_Catalog_test(
c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer,
c_real real, c_double real,
c_decimal decimal(38), c_number number(38), c_numeric numeric(38),
c_char char(50) default null, c_varchar varchar(20), c_varchar2 varchar2(4000),
c_date date, c_datetime date, c_timestamp timestamp,
Least text
)
PARTITION BY RANGE (c_integer)
(
partition P_20180121 values less than (0),
partition P_20190122 values less than (50000),
partition P_20200123 values less than (100000),
partition P_max values less than (maxvalue)
);
select * from Collation_Catalog_test;
drop table Collation_Catalog_test;
|
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64)
--
-- Host: localhost Database: spo
-- ------------------------------------------------------
-- Server version 5.7.31
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `contactoprofessores`
--
DROP TABLE IF EXISTS `contactoprofessores`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `contactoprofessores` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tipoContactoId` int(11) NOT NULL,
`professorId` int(11) NOT NULL,
`infoContacto` varchar(50) NOT NULL,
`createdAt` datetime NOT NULL,
`updatedAt` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `contactoProfessores_tipoContactoId_foreign_idx` (`tipoContactoId`),
KEY `contactoProfessores_professorId_foreign_idx` (`professorId`),
CONSTRAINT `contactoProfessores_professorId_foreign_idx` FOREIGN KEY (`professorId`) REFERENCES `professores` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `contactoProfessores_tipoContactoId_foreign_idx` FOREIGN KEY (`tipoContactoId`) REFERENCES `tipocontactos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `contactoprofessores`
--
LOCK TABLES `contactoprofessores` WRITE;
/*!40000 ALTER TABLE `contactoprofessores` DISABLE KEYS */;
INSERT INTO `contactoprofessores` VALUES (3,3,11,'Mário Varela','2021-03-08 23:28:07','2021-03-08 23:38:55'),(4,4,11,'937632034','2021-03-08 23:29:57','2021-03-08 23:29:57'),(5,2,11,'Mariana Nelasta','2021-03-09 00:04:20','2021-03-09 00:04:20');
/*!40000 ALTER TABLE `contactoprofessores` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2021-03-09 5:58:17
|
CREATE DATABASE sqlalchemy;
|
# Table
## 1. Users
CREATE TABLE Users
(
user_id varchar(300),
user_name varchar(255)
);
INSERT INTO Users ( user_id , user_name )
VALUES
('6', 'Alice'),
('2', 'Bob'),
('7', 'Alex');
## 2. Register
CREATE TABLE Register
(
contest_id varchar(300),
user_id varchar(255)
);
INSERT INTO Register ( contest_id , user_id )
VALUES
('215', '6'),
('209', '2'),
('208', '2'),
('210', '6'),
('208', '6'),
('209', '7'),
('209', '6'),
('215', '7'),
('208', '7'),
('210', '2'),
('207', '2'),
('210', '7');
# Solutoin 1(self, correct)
SELECT
Total.contest_id,
ROUND(SUM(R.user_id is not NULL) / COUNT(Total.contest_id) * 100, 2) AS percentage
FROM
(SELECT
Contest.contest_id,
U.user_id
FROM Users U
CROSS JOIN (SELECT DISTINCT contest_id AS contest_id FROM Register) Contest) Total
LEFT JOIN Register R
ON Total.contest_id = R.contest_id AND
Total.user_id = R.user_id
GROUP BY Total.contest_id
ORDER BY percentage DESC, contest_id;
# Solution 2(reference, correct)
select r.contest_id as contest_id,
round(100*count(distinct r.user_id)/count(distinct u.user_id), 2) as percentage
from Register r, Users u
group by r.contest_id
order by percentage desc, contest_id
# Solution 3(reference, correct)
SELECT r.contest_id, ROUND(COUNT(1) * 100 / (SELECT COUNT(user_id) FROM Users), 2) AS 'percentage'
FROM Register r
GROUP BY r.contest_id
ORDER BY percentage DESC, contest_id ASC
|
CREATE KEYSPACE CustomerProfileKeySpace
WITH REPLICATION = {
'class' : 'SimpleStrategy',
'replication_factor' : 2
}
AND DURABLE_WRITES = true;
USE CustomerProfileKeySpace;
CREATE TABLE CustomerProfile (
PartyId text,
PartyNumber text,
PartyType text,
Name text,
FullLegalName text,
LegalStructure text,
BeneficialOwnership text,
AccountRole text,
emailAddress text,
Phone text,
Mobile text,
PRIMARY KEY (PartyId, AccountRole)
)
WITH CLUSTERING ORDER BY (AccountRole ASC);
CREATE TABLE CustomerProfile_Address (
PartyId text,
AddressType text,
AddressLine text,
StreetName text,
TownName text,
BuildingNumber text,
PostCode text,
CountrySubDivision text,
Country_code text,
Country_ShortName text,
Country_Description text,
PRIMARY KEY ((PartyId, Country_code))
)
WITH CLUSTERING ORDER BY (Country_code ASC);
CREATE INDEX party_id_add ON customerprofilekeyspace.customerprofile_address (PartyId);
CREATE TABLE CustomerProfile_Address (
PartyId text,
AddressType text,
AddressLine text,
StreetName text,
TownName text,
BuildingNumber text,
PostCode text,
CountrySubDivision text,
Country_code text,
Country_ShortName text,
Country_Description text,
PRIMARY KEY (Country_code)
)
WITH CLUSTERING ORDER BY (PartyId ASC);
|
COMMENT ON COLUMN "public"."users"."email_primary" IS E'null'
alter table "public"."users" rename column "emailPrimary" to "email_primary";
|
/**
* 初始化所有数据表
*/
|
CREATE TABLE subdivision_CH (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-AG', E'Ааргау', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-AR', E'Аппенцелль — Ауссерроден', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-AI', E'Аппенцелль — Іннерроден', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-BL', E'Базель-Ланд', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-BS', E'Базель-Штадт', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-BE', E'Берн', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-FR', E'Фрібур', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-GL', E'Гларус', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-GR', E'Граубюнден', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-JU', E'Юра', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-NE', E'Невшатель', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-NW', E'Нідвальден', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-OW', E'Обвальден', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-SH', E'Шаффгаузен', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-SO', E'Золотурн', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-TG', E'Тургау', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-TI', E'Тічино', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-UR', E'Урі', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-VS', E'Вале', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-VD', E'Во', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-ZG', E'Цуг', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-GE', E'Женева', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-LU', E'Люцерн', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-ZH', E'Цюрих', E'canton');
|
SELECT ' UInt32 | UInt64 ';
DROP TABLE IF EXISTS test.u32;
DROP TABLE IF EXISTS test.u64;
DROP TABLE IF EXISTS test.merge_32_64;
CREATE TABLE test.u32 (x UInt32, y UInt32 DEFAULT x) ENGINE = Memory;
CREATE TABLE test.u64 (x UInt64, y UInt64 DEFAULT x) ENGINE = Memory;
CREATE TABLE test.merge_32_64 (x UInt64) ENGINE = Merge(test, '^u32|u64$');
INSERT INTO test.u32 (x) VALUES (1);
INSERT INTO test.u64 (x) VALUES (1);
INSERT INTO test.u32 (x) VALUES (4294967290);
INSERT INTO test.u64 (x) VALUES (4294967290);
--now inserts 3. maybe need out of range check?
--INSERT INTO test.u32 VALUES (4294967299);
INSERT INTO test.u64 (x) VALUES (4294967299);
select ' = 1:';
SELECT x FROM test.merge_32_64 WHERE x = 1;
select ' 1:';
SELECT x FROM test.merge_32_64 WHERE x IN (1);
select ' 4294967290:';
SELECT x FROM test.merge_32_64 WHERE x IN (4294967290);
select ' 4294967299:';
SELECT x FROM test.merge_32_64 WHERE x IN (4294967299);
--select ' -1: ';
--SELECT x FROM test.merge_32_64 WHERE x IN (-1);
DROP TABLE test.u32;
DROP TABLE test.u64;
DROP TABLE test.merge_32_64;
SELECT ' Int64 | UInt64 ';
DROP TABLE IF EXISTS test.s64;
DROP TABLE IF EXISTS test.u64;
DROP TABLE IF EXISTS test.merge_s64_u64;
CREATE TABLE test.s64 (x Int64) ENGINE = Memory;
CREATE TABLE test.u64 (x UInt64) ENGINE = Memory;
CREATE TABLE test.merge_s64_u64 (x UInt64) ENGINE = Merge(test, '^s64|u64$');
INSERT INTO test.s64 VALUES (1);
INSERT INTO test.s64 VALUES (-1);
INSERT INTO test.u64 VALUES (1);
select ' 1:';
SELECT x FROM test.merge_s64_u64 WHERE x IN (1);
select ' -1: ';
SELECT x FROM test.merge_s64_u64 WHERE x IN (-1);
DROP TABLE test.s64;
DROP TABLE test.u64;
DROP TABLE test.merge_s64_u64;
SELECT ' Int32 | UInt64 ';
DROP TABLE IF EXISTS test.one;
DROP TABLE IF EXISTS test.two;
DROP TABLE IF EXISTS test.merge_one_two;
CREATE TABLE test.one (x Int32) ENGINE = Memory;
CREATE TABLE test.two (x UInt64) ENGINE = Memory;
CREATE TABLE test.merge_one_two (x UInt64) ENGINE = Merge(test, '^one$|^two$');
INSERT INTO test.one VALUES (1);
INSERT INTO test.two VALUES (1);
INSERT INTO test.one VALUES (2147483650);
INSERT INTO test.two VALUES (2147483650);
SELECT * FROM test.merge_one_two WHERE x IN (1);
SELECT x FROM test.merge_one_two WHERE x IN (2147483650);
SELECT x FROM test.merge_one_two WHERE x IN (-1);
SELECT ' String | FixedString(16) ';
DROP TABLE IF EXISTS test.one;
DROP TABLE IF EXISTS test.two;
DROP TABLE IF EXISTS test.merge_one_two;
CREATE TABLE test.one (x String) ENGINE = Memory;
CREATE TABLE test.two (x FixedString(16)) ENGINE = Memory;
CREATE TABLE test.merge_one_two (x String) ENGINE = Merge(test, '^one$|^two$');
INSERT INTO test.one VALUES ('1');
INSERT INTO test.two VALUES ('1');
SELECT * FROM test.merge_one_two WHERE x IN ('1');
SELECT ' DateTime | UInt64 ';
DROP TABLE IF EXISTS test.one;
DROP TABLE IF EXISTS test.two;
DROP TABLE IF EXISTS test.merge_one_two;
CREATE TABLE test.one (x DateTime) ENGINE = Memory;
CREATE TABLE test.two (x UInt64) ENGINE = Memory;
CREATE TABLE test.merge_one_two (x UInt64) ENGINE = Merge(test, '^one$|^two$');
INSERT INTO test.one VALUES (1);
INSERT INTO test.two VALUES (1);
SELECT * FROM test.merge_one_two WHERE x IN (1);
SELECT ' Array(UInt32) | Array(UInt64) ';
DROP TABLE IF EXISTS test.one;
DROP TABLE IF EXISTS test.two;
DROP TABLE IF EXISTS test.merge_one_two;
CREATE TABLE test.one (x Array(UInt32), z String DEFAULT '', y Array(UInt32)) ENGINE = Memory;
CREATE TABLE test.two (x Array(UInt64), z String DEFAULT '', y Array(UInt64)) ENGINE = Memory;
CREATE TABLE test.merge_one_two (x Array(UInt64), z String, y Array(UInt64)) ENGINE = Merge(test, '^one$|^two$');
INSERT INTO test.one (x, y) VALUES ([1], [0]);
INSERT INTO test.two (x, y) VALUES ([1], [0]);
INSERT INTO test.one (x, y) VALUES ([4294967290], [4294967290]);
INSERT INTO test.two (x, y) VALUES ([4294967290], [4294967290]);
INSERT INTO test.one (x, y) VALUES ([4294967299], [4294967299]);
INSERT INTO test.two (x, y) VALUES ([4294967299], [4294967299]);
SELECT x, y FROM test.merge_one_two WHERE arrayExists(_ -> _ IN (1), x);
SELECT x, y FROM test.merge_one_two WHERE arrayExists(_ -> _ IN (4294967290), x);
SELECT x, y FROM test.merge_one_two WHERE arrayExists(_ -> _ IN (4294967299), x);
DROP TABLE IF EXISTS test.one;
DROP TABLE IF EXISTS test.two;
DROP TABLE IF EXISTS test.merge_one_two;
|
-- id_cheme = 3
drop table if exists streets;
create table streets(
`id` int auto_increment primary key not null,
`old_name` varchar(2048) not null,
`new_name` varchar(2048) not null,
`description` varchar(2048) not null,
`direction` int not null,
`start_lat` float not null,
`start_long` float not null,
`end_lat` float not null,
`end_long` float not null
);
insert into streets values
(default, 'Дорога Павлова', 'Дорога Вити', 'Приятно удивила здесь дорога – ровная, без ям и колдобин, прямо до ворот комплекса. Любовались ребята и природой – то и дело перед глазами вырисовывались ярко-красные маковые поля, всюду зелень, полевые цветы.', 1, 53.14, 26.21, 53.16, 26.36),
(default, 'Дорога Петровича', 'Дорога Неон', 'Путь сообщения для передвижения людей, прогона скота (ранее) и транспорта.', 2, 53.22, 26.2235, 53.24, 26.2778),
(default, 'Дорога Антона', 'Дорога Григория', 'Дорога, соединяющая деревни еще со времен СССР.', 3, 53.32, 24.231, 53.32, 24.323);
|
CREATE TABLE "KODELISTE" (
"ID" NUMBER(19,0),
"KODEVERK" VARCHAR2(100 CHAR),
"KODE" VARCHAR2(100 CHAR),
"OFFISIELL_KODE" VARCHAR2(1000 CHAR),
"NAVN" VARCHAR2(256 CHAR),
"BESKRIVELSE" VARCHAR2(4000 CHAR),
"SPRAK" VARCHAR2(3 CHAR) DEFAULT 'NB',
"GYLDIG_FOM" DATE DEFAULT sysdate,
"GYLDIG_TOM" DATE DEFAULT to_date('31.12.9999','dd.mm.yyyy'),
"OPPRETTET_AV" VARCHAR2(200 CHAR) DEFAULT 'VL',
"OPPRETTET_TID" TIMESTAMP (3) DEFAULT systimestamp,
"ENDRET_AV" VARCHAR2(200 CHAR),
"ENDRET_TID" TIMESTAMP (3),
"EKSTRA_DATA" VARCHAR2(4000 CHAR)
);
Insert into KODELISTE (ID,KODEVERK,KODE,OFFISIELL_KODE,NAVN,BESKRIVELSE,SPRAK,GYLDIG_FOM,GYLDIG_TOM,OPPRETTET_AV,OPPRETTET_TID,ENDRET_AV,ENDRET_TID,EKSTRA_DATA) values ('1000200','AKSJONSPUNKT_STATUS','OPPR',null,'Opprettet',null,'NB',to_date('01.01.2000','DD.MM.RRRR'),to_date('31.12.9999','DD.MM.RRRR'),'VL',to_timestamp('28.09.2017 14.04.12,750000000','DD.MM.RRRR HH24.MI.SS,FF'),null,null,null);
Insert into KODELISTE (ID,KODEVERK,KODE,OFFISIELL_KODE,NAVN,BESKRIVELSE,SPRAK,GYLDIG_FOM,GYLDIG_TOM,OPPRETTET_AV,OPPRETTET_TID,ENDRET_AV,ENDRET_TID,EKSTRA_DATA) values ('1262600','POSTSTED','9981','9981','BERLEV�G',null,'NB',to_date('01.01.2000','DD.MM.RRRR'),to_date('31.12.9999','DD.MM.RRRR'),'VL',to_timestamp('28.09.2017 14.04.12,907000000','DD.MM.RRRR HH24.MI.SS,FF'),null,null,null);
Insert into KODELISTE (ID,KODEVERK,KODE,OFFISIELL_KODE,NAVN,BESKRIVELSE,SPRAK,GYLDIG_FOM,GYLDIG_TOM,OPPRETTET_AV,OPPRETTET_TID,ENDRET_AV,ENDRET_TID,EKSTRA_DATA) values ('1262650','POSTSTED','9982','9982','KONGSFJORD',null,'NB',to_date('01.01.2000','DD.MM.RRRR'),to_date('31.12.9999','DD.MM.RRRR'),'VL',to_timestamp('28.09.2017 14.04.12,907000000','DD.MM.RRRR HH24.MI.SS,FF'),null,null,null);
comment on table KODELISTE is 'KODELISTE';
|
IF OBJECT_ID('@results_schema.cohort_inclusion', 'U') IS NULL
CREATE TABLE @results_schema.cohort_inclusion(
generation_id int NOT NULL,
rule_sequence int NOT NULL,
name varchar(255) NULL,
description varchar(1000) NULL
);
|
#standardSQL
# 17_23: Percentage of responses with pre-check directive
SELECT
_TABLE_SUFFIX AS client,
_cdn_provider AS cdn,
COUNTIF(LOWER(resp_cache_control) LIKE '%pre-check%') AS freq,
COUNT(0) AS total,
ROUND(COUNTIF(LOWER(resp_cache_control) LIKE '%pre-check%') * 100 / COUNT(0), 2) AS pct
FROM
`httparchive.summary_requests.2019_07_01_*`
GROUP BY
client,
cdn
ORDER BY
total DESC
|
/* Addresses for Users (20) */
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('109', 'Blue Street', 'Upper Hutt', 'Wellington', 'New Zealand', '5018');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('333', 'Ilam Road', 'Christchurch', 'Canterbury', 'New Zealand', '90210');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('57', 'Sydney Highway', 'Shire of Cocos Islands', 'West Island', 'Cocos (Keeling) Islands', '9732');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('47993', 'Norwood Garden', 'Mambere-Kadei', 'Central African Republic', 'Africa', '3428');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('129', 'Mastic Trail', 'Frank Sound Cayman Islands', 'Caribbean', 'North America', '3442');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('80416', 'Rodney Street', 'Jon Loop', 'Shaanxi', 'China', '2113');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('9205', 'Monique Vista', 'Bururi', 'Bigomogomo', 'Africa', '1000');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('240', 'Newson Street', 'Bernhard Run', 'Southland', 'New Zealand', '2839');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('16', 'Presidente Peron', 'Funes', 'Santa Fe', 'Argentina', 'S2132');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('190', 'Fort Washington Avenue', 'New York', 'New York', 'United States', '10040');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('32', 'Hunter Avenue', 'Fairview Shores', 'Florida', 'United States', '32804');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('32', 'Via Giuseppe Di Vittorio', 'Rovereto', 'Trentino-Alto Adige/Südtirol', 'Italy', '38068');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('3434', 'Russell Street', 'Detroit', 'Michigan', 'United States', '48207');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('16', 'Barnards Road', 'Scarborough', 'England', 'United Kingdom', 'YO21 1UX');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('199', 'Kwa Jongo Street', 'Dar es Salaam', 'Coastal Zone', 'Tanzania', '78570');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('76', 'Milltown Road', 'Strabane', 'Northern Ireland', 'United Kingdom', 'BT82 8AS');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('87', 'Ansancheonnam-ro', 'Ansan-si', 'Gyeonggi-do', 'South Korea', '15483');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('98', 'Sqaq il-Qenċ', 'Zebbug', 'Southern Region', 'Malta', 'ZBG9019');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('19', 'Heping Road', 'Zebbug', 'Tianjin', 'China', '300010');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('19b', 'IGIS Road', 'Awan Town', 'Islamabad Capital Territory', 'Pakistan', '44110');
/* Users (20) */
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Alex', 'Doe', 'Joe', 'Johnny', 'Biography', 'emailUSER@email.com', DATE'2008-02-02', '0271317', 5, 'UGFzc3dvcmQxMjMh', DATE'2021-02-12', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Chad', 'Taylor', 'S', 'Chaddy', 'Biography', 'chad.taylor@example.com', DATE'2006-02-01', '0271316678', 3, 'UGFzc3dvcmQxMjMh', DATE'2021-03-14', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Naomi', 'Wilson', 'I', 'GM', 'Biography', 'naomi.wilson@example.com', DATE'2007-09-08', '54335522', 4, 'UGFzc3dvcmQxMjMh', DATE'2021-03-01', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Seth', 'Murphy', 'S', 'Sethy', 'Biography', 'seth.murphy@example.com', DATE'2003-06-19', '027188316', 5, 'UGFzc3dvcmQxMjMh', DATE'2021-03-03', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Minttu', 'Wainio', 'Anna', 'Minnie', 'Biography', 'minttu.wainio@example.com', DATE'2004-07-28', '0290316', 6, 'UGFzc3dvcmQxMjMh', DATE'2021-03-05', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Francisca', 'Benitez', 'Tina', 'Fran', 'Biography', 'francisca.benitez@example.com', DATE'2008-09-10', '12334456', 7, 'UGFzc3dvcmQxMjMh', DATE'2021-01-08', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Francisca', 'Bznitez', 'Tessa', 'Fran', 'Biography', 'francisca.bznitez@example.com', DATE'2001-07-17', '967352531', 8, 'UGFzc3dvcmQxMjMh', DATE'2021-01-01', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Frank', 'Smith', 'J', 'Frankie', 'Biography', 'frank.j.smith@email.com', DATE'2000-05-14', '0271316', 1, 'UGFzc3dvcmQxMjMh', DATE'2019-05-14', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Lina', 'Patterson', 'Jose Mari', 'Lina', 'Da', 'linap@email.com', DATE'2000-02-14', '0275431316', 9, 'UGFzc3dvcmQxMjMh', DATE'2010-05-14', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Evelia', 'Blanxart', 'Robert', 'Robby', 'I like art!', 'everblanxart@gmail.com', DATE'2007-04-13', '0272331323', 10, 'UGFzc3dvcmQxMjMh', DATE'2019-05-20', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Mirta', 'Lovel', 'Juan', 'Love', 'Pancakes', 'mjl25@uclive.ac.nz', DATE'1999-02-22', '0273321116', 11, 'UGFzc3dvcmQxMjMh', DATE'2021-01-20', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Jordan', 'Piper', 'Mervyn', 'Bag', 'I do not play the bagpipes!', 'jordanpiper@yahoo.com', DATE'2005-01-22', '0272121116', 12, 'UGFzc3dvcmQxMjMh', DATE'2019-05-22', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Ife', 'Weston', 'Missie', 'Missie', 'Miss me.', 'missie@gmail.com', DATE'2004-05-17', '0271316323', 13, 'UGFzc3dvcmQxMjMh', DATE'2014-02-14', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Pia', 'Kemp', 'Alex', 'Hemp', 'My cool bio.', 'piakemp13@email.com', DATE'2008-01-13', '0271316231', 14, 'UGFzc3dvcmQxMjMh', DATE'2020-01-12', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Alyce', 'Gibbs', 'Teddie', 'Teddie', 'Looking for cheap teddies.', 'alycegibbs@gmail.com', DATE'1965-02-19', '0271316943', 15, 'UGFzc3dvcmQxMjMh', DATE'2019-03-28', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Casandra', 'Dane', 'Fen', 'Cassie', 'I am not from Denmark!', 'cassie@dane.com', DATE'1982-01-17', '0271316226', 16, 'UGFzc3dvcmQxMjMh', DATE'2018-12-13', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Bennett', 'Garner', 'Finola', 'Garnish', 'I like apples.', 'garnish@yahoo.com', DATE'1989-09-12', '0271316096', 17, 'UGFzc3dvcmQxMjMh', DATE'2021-02-02', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Da', 'Meadows', 'Randolf', 'Da Baby', 'Looking for cheap bread.', 'dababy@email.com', DATE'2006-02-18', '0271316989', 18, 'UGFzc3dvcmQxMjMh', DATE'2019-12-12', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Tanner', 'Ilene', 'Levitt', 'Levy', 'Biography', 'tannerlevitt@gmail.com', DATE'1999-12-14', '0271316234', 19, 'UGFzc3dvcmQxMjMh', DATE'2020-01-12', 'USER');
INSERT INTO `user` (first_name, last_name, middle_name, nickname, bio, email, date_of_birth, phone_number, address_id, password, created, role) VALUES ('Juliana', 'Haden', 'Celeste', 'Jules', 'Biography', 'jules@email.com', DATE'2000-05-19', '0271316534', 20, 'UGFzc3dvcmQxMjMh', DATE'2021-02-03', 'USER');
/* Addresses for Businesses (3) */
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('86', 'High Street', 'Picton', 'Marlborough', 'New Zealand', '7220');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('1849', 'C Street Northwest', 'Washington', 'District of Columbia', 'United States', '20240');
INSERT INTO `address` (street_number, street_name, city, region, country, postcode) VALUES ('7', 'Wangjing Zhonghuan Nanlu', 'Chaoyang District', 'Beijing', 'China', '100102');
/* Businesses (3) */
INSERT INTO `business` (business_type, created, description, name, primary_administrator_id, address_id) VALUES ('RETAIL_TRADE', DATE'2021-02-12', 'Description', 'Brink Food', 1, 21);
INSERT INTO `business` (business_type, created, description, name, primary_administrator_id, address_id) VALUES ('CHARITABLE_ORGANISATION', DATE'2021-02-14', 'Description', 'Sunburst Waste', 10, 22);
INSERT INTO `business` (business_type, created, description, name, primary_administrator_id, address_id) VALUES ('RETAIL_TRADE', DATE'2021-02-01', 'Description', 'Fringe Wasteless', 6, 23);
/* Link Users to Businesses */
INSERT INTO `users_businesses` (user_id, businesses_id) VALUES (1, 1);
INSERT INTO `users_businesses` (user_id, businesses_id) VALUES (10, 2);
INSERT INTO `users_businesses` (user_id, businesses_id) VALUES (11, 2);
INSERT INTO `users_businesses` (user_id, businesses_id) VALUES (13, 2);
INSERT INTO `users_businesses` (user_id, businesses_id) VALUES (6, 3);
/* Products for Business 1 (9) */
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (1, 'MANDARIN', DATE'2021-05-12', 'Fresh Produce Mandarins Satsuma', 'Countdown', 'Mandarins', 4.50);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (1, 'TP-12PK', DATE'2021-05-12', 'Purex toilet tissue offers you the features of a premium toilet tissue at a midmarket price. Double embossed for softness. Biodegradable.', 'Purex', 'Purex Toilet Paper 12Pk', 4.80);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (1, 'BEEF-MINCE', DATE'2021-05-12', 'Beef mince typically 82% meat, 18% fat with nothing else added.', 'Countdown', 'Countdown Beef Mince Value', 10.90);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (1, 'TP-6PK', DATE'2021-05-12', 'Purex 6 mega long white rolls, 450 sheets per roll (more than double purex standard rolls).', 'Purex', 'Purex Toilet Paper 6Pk', 4.80);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (1, 'KERI-OJ', DATE'2021-05-12', 'Made in New Zealand from quality imported ingredients.', 'Keri', 'Keri Premium Fruit Juice Orange 2.4L', 3.70);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (1, 'ARNOTTS-CSCOTCH', DATE'2021-05-12', 'Traditional scotch finger biscuits half coated in milk chocolate.', 'Arnotts', 'Arnotts Chocolate Biscuits Scotch Fingers', 2.99);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (1, 'BACON', DATE'2021-05-12', 'Made in New Zealand from imported and local ingredients.', 'Beehive', 'Streaky Bacon 250g', 6.00);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (1, 'CARAMILK', DATE'2021-05-12', 'Made in Australia from imported and local ingredients.', 'Cadbury ', 'Chocolate Block Caramilk 180g', 3.49);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (1, 'SNIFTER', DATE'2021-05-12', 'Enjoy the smooth creamy taste of cadbury dairy milk milk chocolate now with the inclusion of mint flavoured marshmallows inspired by pascall snifters!. This special edition flavour won’t be around for long so make sure you pick up one or two today.', 'Cadbury', 'Cadbury Dairy Milk Chocolate Block Pascall Snifters 180g', 3.49);
/* Products for Business 2 (8) */
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (2, 'CHOCOLATE', DATE'2021-05-12', 'Made in Australia from imported and local ingredients.', 'Cadbury', 'Cadbury Chocolate Block Dairy Milk 180g', 3.49);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (2, 'BLACK-FOREST', DATE'2021-05-12', 'Made in Australia from imported and local ingredients.', 'Cadbury', 'Cadbury Chocolate Block Dairy Milk Black Forest 180g', 3.49);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (2, 'CHICKEN-NUGGETS', DATE'2021-05-12', 'Made in New Zealand from local and imported ingredients.', 'Tegel', 'Tegel Chicken Nuggets Tempura Battered 1kg', 10.00);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (2, 'KERI-APPLE', DATE'2021-05-12', 'Made in New Zealand from quality imported ingredients.', 'Keri', 'Keri Original Fruit Juice Apple 3L', 3.70);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (2, 'CHICKEN-TENDERS', DATE'2021-05-12', 'Proudly made right here in New Zealand from local and imported ingredients.', 'Tegel', 'Tegel Chicken Tenders Crispy', 10.00);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (2, 'CARAMELLO', DATE'2021-05-12', 'Made in Australia from imported and local ingredients.', 'Cadbury', 'Cadbury Chocolate Block Dairy Milk Caramello', 3.49);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (2, 'POTATO-CHIPS', DATE'2021-05-12', 'Made in New Zealand from local and imported ingredients.', 'Eta', 'Eta Ripple Cut Potato Chips Salt & Vinegar', 2.20);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (2, 'CHICKEN-STEAKS', DATE'2021-05-12', 'Proudly made right here in New Zealand from local and imported ingredien', 'Tegel', 'Tegel Chicken Steaks Chargrilled Breast', 10.00);
/* Products for Business 3 (8) */
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (3, 'POTATO-CHIPS', DATE'2021-05-12', 'Made in New Zealand from local and imported ingredients.', 'Eta', 'Eta Ripple Cut Potato Chips Chicken', 2.20);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (3, 'FR-CHICKEN-TEND', DATE'2021-05-12', 'Proudly made right here in New Zealand from local and imported ingredients.', 'Tegel', 'Tegel Free Range Chicken Tenders Panko Bread Crumbs', 10.00);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (3, 'KERI-OJ-W-APPLE', DATE'2021-05-12', 'Keri juices have been delighting New Zealanders for over 40 years. All our favourites are real crowd pleasers and packed full of deliciousness. This tasty orange with apple base is one of New Zealand''s favourite flavours.', 'Keri', 'Keri Original Fruit Juice Orange With Apple 3L', 3.70);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (3, 'COFFEE-CARAMEL', DATE'2021-05-12', 'Made in Australia from at least 50% Australian ingredients.', 'Nescafe', 'Nescafe Coffee Mix Caramel 442G', 9.00);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (3, 'ARNOTTS-CSNAP', DATE'2021-05-12', 'Crunchy biscuits made with rolled oats golden syrup and coconut with a coating of delicious milk chocolate.', 'Arnotts', 'Arnotts Chocolate Biscuits Butternut Snap', 2.99);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (3, 'PC-SALTED', DATE'2021-05-12', 'Made in New Zealand from local and imported ingredients.', 'Eta', 'Eta Ripple Cut Potato Chips Ready Salted', 2.20);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (3, 'ARNOTTS-MINT', DATE'2021-05-12', 'Smooth dark chocolate with crunchy chocolate biscuit and delicious mint cream hidden on the inside.', 'Arnotts', 'Arnotts Chocolate Biscuits Mint Slice', 3.65);
INSERT INTO `product` (business_id, id, created, description, manufacturer, name, recommended_retail_price) VALUES (3, 'COFFEE-MOCHA', DATE'2021-05-12', 'Made in Australia from at least 50% Australian ingredients.', 'Nescafe', 'Nescafe Coffee Mix Mocha 468G', 9.00);
/* Inventory for Business 1 (9) */
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-09-12', 1, DATE'2021-11-12', DATE'2021-01-12', 4.50, 'MANDARIN', 99, DATE'2021-09-10', 445.50);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-06-12', 1, DATE'2021-09-12', DATE'2021-01-12', 4.20, 'MANDARIN', 40, DATE'2021-06-10', 168.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-05-16', 1, DATE'2021-05-30', DATE'2021-05-10', 10.00, 'BEEF-MINCE', 68, DATE'2021-05-14', 680.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-11-12', 1, DATE'2022-11-12', DATE'2020-06-29', 3.70, 'KERI-OJ', 244, DATE'2021-11-10', 900.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-09-12', 1, DATE'2021-11-12', DATE'2021-01-12', 2.99, 'ARNOTTS-CSCOTCH', 13, DATE'2021-09-10', 38.87);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-06-12', 1, DATE'2021-06-12', DATE'2021-05-12', 5.69, 'BACON', 44, DATE'2021-06-10', 250.36);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-09-12', 1, DATE'2021-11-12', DATE'2021-05-12', 3.49, 'CARAMILK', 100, DATE'2021-09-10', 349.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-07-12', 1, DATE'2021-08-12', DATE'2021-05-12', 2.99, 'SNIFTER', 40, DATE'2021-07-10', 120.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-07-12', 1, DATE'2021-08-12', DATE'2021-05-12', 3.99, 'SNIFTER', 60, DATE'2021-07-10', 240.00);
/* Inventory for Business 2 (9) */
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-09-12', 2, DATE'2021-11-12', DATE'2021-01-12', 3.99, 'CHOCOLATE', 99, DATE'2021-09-10', 395.01);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-06-12', 2, DATE'2021-09-12', DATE'2021-01-12', 3.29, 'CHOCOLATE', 40, DATE'2021-06-10', 131.60);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2023-05-16', 2, DATE'2023-05-30', DATE'2021-05-10', 4.00, 'BLACK-FOREST', 68, DATE'2023-05-14', 250.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-11-12', 2, DATE'2022-11-12', DATE'2020-06-29', 10.00, 'CHICKEN-NUGGETS', 244, DATE'2021-11-10', 2440.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-09-12', 2, DATE'2021-11-12', DATE'2021-01-12', 2.99, 'KERI-APPLE', 13, DATE'2021-09-10', 38.87);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-06-12', 2, DATE'2021-06-12', DATE'2021-05-12', 9.99, 'CHICKEN-TENDERS', 44, DATE'2021-06-10', 439.56);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-09-12', 2, DATE'2021-11-12', DATE'2021-05-12', 3.49, 'CARAMELLO', 100, DATE'2021-09-10', 349.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-07-12', 2, DATE'2021-08-12', DATE'2021-05-12', 2.20, 'POTATO-CHIPS', 40, DATE'2021-07-10', 88.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-07-12', 2, DATE'2021-08-12', DATE'2021-05-12', 2.19, 'POTATO-CHIPS', 60, DATE'2021-07-10', 131.40);
/* Inventory for Business 3 (9) */
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-09-12', 3, DATE'2021-11-12', DATE'2021-01-12', 2.20, 'POTATO-CHIPS', 99, DATE'2021-09-10', 215.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-06-12', 3, DATE'2021-09-12', DATE'2021-01-12', 1.99, 'POTATO-CHIPS', 40, DATE'2021-06-10', 79.60);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2023-05-16', 3, DATE'2023-05-30', DATE'2021-05-10', 12.00, 'FR-CHICKEN-TEND', 68, DATE'2023-05-14', 816.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-11-12', 3, DATE'2022-11-12', DATE'2020-06-29', 3.70, 'KERI-OJ-W-APPLE', 244, DATE'2021-11-10', 902.80);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-09-12', 3, DATE'2021-11-12', DATE'2021-01-12', 9.00, 'COFFEE-CARAMEL', 13, DATE'2021-09-10', 115.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-06-12', 3, DATE'2021-06-12', DATE'2021-05-12', 2.99, 'ARNOTTS-CSNAP', 44, DATE'2021-06-10', 131.56);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-09-12', 3, DATE'2021-11-12', DATE'2021-05-12', 2.49, 'PC-SALTED', 100, DATE'2021-09-10', 249.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-07-12', 3, DATE'2021-08-12', DATE'2021-05-12', 9.00, 'COFFEE-MOCHA', 40, DATE'2021-07-10', 360.00);
INSERT INTO `inventory_item` (best_before, business_id, expires, manufactured, price_per_item, product_id, quantity, sell_by, total_price) VALUES (DATE'2021-07-12', 3, DATE'2021-08-12', DATE'2021-05-12', 9.00, 'COFFEE-MOCHA', 60, DATE'2021-07-10', 500.00);
/* Listings for Business 1 (8) */
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-09-12', DATE'2021-05-12', 'Willing to accept lower offers.', 180.00, 40, 1, 1);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-09-12', DATE'2021-05-12', 'Willing to accept lower offers.', 250.00, 59, 1, 1);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-06-10', DATE'2021-05-12', 'Willing to accept lower offers.', 168.00, 40, 2, 1);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-05-14', DATE'2021-05-12', 'No low ballers.', 600.00, 60, 3, 1);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-09-12', DATE'2021-05-12', 'Fresh', 800.00, 200, 4, 1);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-09-10', DATE'2021-05-12', 'Limited Stock.', 38.87, 13, 5, 1);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-06-10', DATE'2021-05-12', 'Selling quick.', 20.00, 4, 6, 1);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-07-10', DATE'2021-05-12', 'Limited Edition', 349.00, 100, 7, 1);
/* Listings for Business 2 (8) */
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-09-12', DATE'2021-05-12', 'Willing to accept lower offers.', 140.00, 40, 10, 2);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-09-12', DATE'2021-05-12', 'Willing to accept lower offers.', 206.00, 59, 10, 2);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-06-10', DATE'2021-05-12', 'Willing to accept lower offers.', 139.60, 40, 11, 2);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-05-14', DATE'2021-05-12', 'No low ballers.', 32.00, 8, 12, 2);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-09-12', DATE'2021-05-12', 'Fresh', 2000.00, 200, 13, 2);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-09-10', DATE'2021-05-12', 'Limited Stock.', 38.87, 13, 14, 2);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-06-10', DATE'2021-05-12', 'Selling quick.', 40.00, 4, 15, 2);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-07-10', DATE'2021-05-12', 'Limited Edition', 349.00, 100, 16, 2);
/* Listings for Business 3 (8) */
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-09-12', DATE'2021-05-12', 'Willing to accept lower offers.', 88.00, 40, 19, 3);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-09-12', DATE'2021-05-12', 'Willing to accept lower offers.', 130.00, 59, 19, 3);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-06-10', DATE'2021-05-12', 'Willing to accept lower offers.', 130.00, 40, 20, 3);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-05-14', DATE'2021-05-12', 'No low ballers.', 69.69, 8, 21, 3);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-09-12', DATE'2021-05-12', 'Fresh', 740.00, 200, 22, 3);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-09-10', DATE'2021-05-12', 'Limited Stock.', 120.00, 13, 23, 3);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-06-10', DATE'2021-05-12', 'Selling quick.', 11.96, 4, 24, 3);
INSERT INTO `listing` (closes, created, more_info, price, quantity, inventory_item_id, business_id) VALUES (DATE'2021-07-10', DATE'2021-05-12', 'Limited Edition', 249.00, 100, 25, 3);
/* Keywords (15) */
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (1, '2021-04-22 11:28:29', 'Coffee');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (2, '2021-04-22 11:28:29', 'Drink');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (3, '2021-04-22 11:28:29', 'Tea');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (4, '2021-04-22 11:28:29', 'Frozen');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (5, '2021-04-22 11:28:29', 'Vegetables');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (6, '2021-04-22 11:28:29', 'Meat');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (7, '2021-04-22 11:28:29', 'Chicken');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (8, '2021-04-22 11:28:29', 'Fish');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (9, '2021-04-22 11:28:29', 'Beef');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (10, '2021-04-22 11:28:29', 'Fresh');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (11, '2021-04-22 11:28:29', 'Apple');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (12, '2021-04-22 11:28:29', 'Samsung');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (13, '2021-04-22 11:28:29', 'Table');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (14, '2021-04-22 11:28:29', 'Car');
INSERT INTO `keyword` (`id`, `created`, `name`) VALUES (15, '2021-04-22 11:28:29', 'Gaming');
/* For Sale Cards for Users (10) */
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (1, 'FORSALE', DATE'2021-05-12', DATE'2022-05-12', 'Nescafe Cafe Menu Coffee Mix Caramel Latte 170G', 'Nescafé café menu caramel is made with quality coffee beans with a delicious caramel flavour, a great frothy afternoon treat!');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (1, 'FORSALE', DATE'2021-05-15', DATE'2022-05-15', 'Red Bull Energy Drink Sugar Free', 'red bull sugar free special formula contains ingredients of high quality: caffeine, taurine, b-group vitamins, sucralose & acesulfame k, alpine water.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (1, 'FORSALE', DATE'2021-05-10', DATE'2022-05-10', 'Chanui Organic Green Tea 170G', 'A lovely, organic chun mee-style green tea. Without green tea''s typical astringency, this gentle tea tastes too good to be good for you!.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (3, 'FORSALE', DATE'2021-05-09', DATE'2022-05-09', 'Mccain Mixed Vegetables Peas, Corn & Carrots', 'Our recipe is simple: good food starts from real ingredients. A mixture of peas, corn and carrot picked for perfection & snap frozen for freshness.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (5, 'FORSALE', DATE'2021-04-12', DATE'2022-04-12', 'Tegel Take Outs Chicken Tenders Louisiana Style', 'Proudly made right here in New Zealand from local and imported ingredients.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (5, 'FORSALE', DATE'2021-05-12', DATE'2022-05-12', 'Mccain Corn Super Juicy Kernels', 'Our recipe is simple: good food starts from real ingredients. Sweet and tender super juicy corn kernels picked for perfection & snap frozen for freshness.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (5, 'FORSALE', DATE'2021-05-15', DATE'2022-05-15', 'Sealord Fish Fillets Hoki Classic Crumbed', 'Wild caught new zealand hoki pieces, coated in a crunchy crumb. Pair this flaky, white fish with potatoes for a take on traditional fish and chips, or serve with vegetables or salad for an easy, healthy meal for the family.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (7, 'FORSALE', DATE'2021-05-12', DATE'2022-05-12', 'Peas Baby', 'Snap frozen for freshness. Baby peas are a source of fibre for healthy digestion, a source of vitamin c for a healthy immune system, and a source of iron to reduce fatigue and tiredness (as part of a healthy balanced diet).');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (8, 'FORSALE', DATE'2021-05-20', DATE'2022-05-20', 'Beef Frying', 'Approx 5 pieces per 1kg - but actual quantity may vary.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (9, 'FORSALE', DATE'2021-05-18', DATE'2022-05-18', 'Beef Mince Premium', 'Premium beef mince typically 95% meat, 5% fat with nothing else added.');
/* Wanted Cards for Users (10) */
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (1, 'WANTED', DATE'2021-05-12', DATE'2022-06-19', 'PS5', 'I want a ps5.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (2, 'WANTED', DATE'2021-05-12', DATE'2022-01-19', 'IPHONE13', 'If exist right now, hhhh!');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (5, 'WANTED', DATE'2021-05-17', DATE'2022-05-19', 'Height Ajustable Standing Desk', 'Save my life!!!');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (3, 'WANTED', DATE'2021-05-15', DATE'2022-05-13', 'Samsung 49inch monitor', 'I want a second hand monitor, the new one is too expansive!!!');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (2, 'WANTED', DATE'2021-05-12', DATE'2022-05-13', 'New Ipad Pro 12.9 with M1 Chips', 'The miniLED and M1 is look so cool.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (2, 'WANTED', DATE'2021-05-12', DATE'2022-05-19', 'Apple Watch Series 6', 'Apple family!');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (5, 'WANTED', DATE'2021-05-19', DATE'2022-05-15', 'BMW i8', 'Let me know any one want to sale one!');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (2, 'WANTED', DATE'2021-05-12', DATE'2022-05-19', 'Pro Display XDR', 'I want two of them!');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (2, 'WANTED', DATE'2021-05-12', DATE'2022-05-10', 'New color Cable', 'The one come from new IMac');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (2, 'WANTED', DATE'2021-05-12', DATE'2022-05-11', 'New color Magic keyboard', 'The one come from new IMac');
/* Exchange Cards for Users (10) */
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (1, 'EXCHANGE', DATE'2021-05-12', DATE'2021-05-19', '1L Trim Milk', 'Looking to exchange a 1L bottle of trim milk for whole milk. Bought by mistake.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (1, 'EXCHANGE', DATE'2021-05-15', DATE'2021-05-22', 'Punnet of Strawberries', 'Looking to exchange a punnet of around 10 strawberries for another fruit.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (2, 'EXCHANGE', DATE'2021-05-08', DATE'2021-05-15', 'Tinned Peaches for Tinned Apricots', 'Looking to exchange a tin of peaches for a tin of apricots. Bought by mistake.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (2, 'EXCHANGE', DATE'2021-05-01', DATE'2021-05-08', 'Whiskers Cat Food', 'Looking to exchange a 1KG bag of Whiskers cat biscuits for any other brand of cat biscuits.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (3, 'EXCHANGE', DATE'2021-05-13', DATE'2021-05-20', '1L Unsweetened Almond Milk', 'Looking to exchange a 1L bottle of unsweetened almond milk for original almond milk. Unopened.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (3, 'EXCHANGE', DATE'2021-05-12', DATE'2021-05-19', 'Hot Fuzz DVD', 'Looking to exchange Hot Fuzz DVD for another movie. Open to any offers.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (4, 'EXCHANGE', DATE'2021-05-11', DATE'2021-05-18', 'Freshly Caught Salmon', 'Looking to exchange some freshly caught salmon for some trout. I have 10 salmon available, make me an exchange offer if you have any freshly caught trout.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (4, 'EXCHANGE', DATE'2021-05-02', DATE'2021-05-09', '12 Banana Muffins', 'Looking to exchange banana muffins for other baked goods. I have 12 available, will exchange for 12 of the same baked good or for a variety.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (5, 'EXCHANGE', DATE'2021-05-12', DATE'2021-05-19', 'Pokemon Ruby for Pokemon Sapphire', 'Looking to exchange Pokemon Ruby for Pokemon Sapphire. Open to a permanent or temporary trade.');
INSERT INTO `marketplace_card` (creator_id, section, created, display_period_end, title, description) VALUES (6, 'EXCHANGE', DATE'2021-05-13', DATE'2021-05-20', '20 Feijoa', 'Looking to exchange feijoa for other fruit, preferably peaches. Homegrown and organic.');
/* Relation Between Card And Keyword (33) */
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('1', '1');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('1', '2');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('2', '2');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('3', '2');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('3', '3');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('4', '4');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('4', '5');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('5', '4');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('5', '6');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('5', '7');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('6', '4');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('6', '5');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('7', '4');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('7', '8');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('8', '4');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('8', '5');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('9', '6');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('9', '9');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('9', '10');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('10', '6');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('10', '9');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('10', '10');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('11', '15');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('12', '11');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('13', '13');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('14', '12');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('15', '11');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('16', '11');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('17', '14');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('18', '11');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('19', '11');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('20', '11');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('14', '12');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('21', '1');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('21', '2');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('21', '3');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('22', '10');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('24', '6');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('25', '1');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('25', '2');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('25', '3');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('27', '8');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('28', '10');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('29', '15');
INSERT INTO `card_keywords` (`card_id`, `keyword_id`) VALUES ('30', '10');
|
CREATE TABLE {{ identifier .Parameters.tableName }} ( "id" UUID NOT NULL, PRIMARY KEY ("id"));
|
-- @testpoint:opengauss关键字minute(非保留),作为外部数据源名
--关键字不带引号-成功
drop data source if exists minute;
create data source minute;
drop data source minute;
--关键字带双引号-成功
drop data source if exists "minute";
create data source "minute";
drop data source "minute";
--关键字带单引号-合理报错
drop data source if exists 'minute';
create data source 'minute';
--关键字带反引号-合理报错
drop data source if exists `minute`;
create data source `minute`;
|
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
CREATE TABLE IF NOT EXISTS `topMenu` (
`id` INT NOT NULL AUTO_INCREMENT,
`menuName` VARCHAR(255) NOT NULL,
`categories_id` INT NULL,
`users_groups_id` INT NULL,
`created` DATETIME NULL,
`modified` DATETIME NULL,
`menu_order` INT NOT NULL DEFAULT 0,
`status` ENUM('active', 'inactive') NOT NULL DEFAULT 'active',
`position` ENUM('left', 'right', 'center', 'bottom') NOT NULL DEFAULT 'right',
`type` INT NOT NULL DEFAULT 1 COMMENT '1 = default\n',
`icon` VARCHAR(255) NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS `topMenu_items` (
`id` INT NOT NULL AUTO_INCREMENT,
`title` VARCHAR(255) NOT NULL,
`image` VARCHAR(255) NULL,
`url` VARCHAR(255) NULL,
`class` VARCHAR(255) NULL,
`style` VARCHAR(255) NULL,
`item_order` INT NULL,
`created` DATETIME NULL,
`modified` DATETIME NULL,
`topMenu_id` INT NOT NULL,
`status` ENUM('active', 'inactive') NOT NULL DEFAULT 'active',
`text` TEXT NULL,
`icon` VARCHAR(255) NULL,
`clean_url` VARCHAR(255) NULL,
`menuSeoUrlItem` VARCHAR(255) DEFAULT '',
PRIMARY KEY (`id`),
INDEX `fk_topMenu_items_topMenu_idx` (`topMenu_id` ASC),
CONSTRAINT `fk_topMenu_items_topMenu`
FOREIGN KEY (`topMenu_id`)
REFERENCES `topMenu` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
CREATE FUNCTION udf_GetPromotedProducts(@CurrentDate DATETIME,@StartDate DATETIME,@EndDate DATETIME,@Discount DECIMAL(10,2)
,@FirstItemId INT,@SecondItemId INT,@ThirdItemId INT)
RETURNS VARCHAR(MAX)
BEGIN
DECLARE @Result VARCHAR(MAX)
DECLARE @FirstItemPrice decimal(10,2) = (SELECT Price FROM Items WHERE Id = @FirstItemId)
DECLARE @SecondItemPrice decimal(10,2) = (SELECT Price FROM Items WHERE Id = @SecondItemId)
DECLARE @ThirdItemPrice decimal(10,2) = (SELECT Price FROM Items WHERE Id = @ThirdItemId)
IF(@FirstItemPrice IS NULL OR @SecondItemPrice IS NULL OR @ThirdItemPrice IS NULL)
BEGIN
SET @Result = 'One of the items does not exists!';
END
ELSE IF (@CurrentDate NOT BETWEEN @StartDate AND @EndDate)
BEGIN
SET @Result = 'The current date is not within the promotion dates!';
END
ELSE
BEGIN
DECLARE @FirstItemName varchar(20) = (SELECT Name FROM Items WHERE Id = @FirstItemId)
DECLARE @SecondItemName varchar(20) = (SELECT Name FROM Items WHERE Id = @SecondItemId)
DECLARE @ThirdItemName varchar(20) = (SELECT Name FROM Items WHERE Id = @ThirdItemId)
SET @FirstItemPrice *= (1-@Discount * 0.01)
SET @SecondItemPrice *= (1-@Discount * 0.01)
SET @ThirdItemPrice *= (1-@Discount * 0.01)
SET @Result = @FirstItemName + ' price: ' + CONVERT(VARCHAR(12),@FirstItemPrice) +' <-> ' + @SecondItemName + ' price: '
+ CONVERT(VARCHAR(12),@SecondItemPrice) + ' <-> ' + @ThirdItemName + ' price: ' + CONVERT(VARCHAR(12),@ThirdItemPrice)
END
RETURN @Result
END
|
DROP TABLE IF EXISTS t_tbs_exemples;
CREATE TABLE t_tbs_exemples (
res_id int(11) NOT NULL auto_increment,
res_name varchar(50) NOT NULL default '',
res_score int(11) NOT NULL default '0',
res_date datetime NOT NULL default '0000-00-00 00:00:00',
res_team varchar(20) NOT NULL default '',
PRIMARY KEY (res_id),
KEY res_team (res_team)
) TYPE=MyISAM;
INSERT INTO t_tbs_exemples VALUES (1, 'michael', 255, '0000-00-00 00:00:00', 'Eagles');
INSERT INTO t_tbs_exemples VALUES (2, 'bigone', 103, '2002-11-24 23:50:00', 'Goonies');
INSERT INTO t_tbs_exemples VALUES (3, 'TheBest', 155, '2002-11-24 23:50:24', 'MIB');
INSERT INTO t_tbs_exemples VALUES (4, 'LittleNemo', 203, '2002-08-10 12:50:45', 'Eagles');
INSERT INTO t_tbs_exemples VALUES (5, 'Rolls', 159, '2002-11-24 23:51:19', 'MIB');
INSERT INTO t_tbs_exemples VALUES (6, 'The very best', 301, '2002-11-24 23:52:22', 'MIB');
INSERT INTO t_tbs_exemples VALUES (7, 'Rocky Horror', 178, '2002-11-24 23:52:41', 'Goonies');
|
-- AlterTable
ALTER TABLE "Certificate" ADD COLUMN "beneficiary" TEXT,
ADD COLUMN "redemptionDate" TIMESTAMP(3);
|
ALTER TABLE dbo.Building
ADD
CONSTRAINT FK_BUILDING_FACULTY FOREIGN KEY (IDbuilding) REFERENCES dbo.Faculty (IDbuilding) ON DELETE CASCADE;
ALTER TABLE dbo.Stages
ADD
CONSTRAINT FK_STAGES_BUILDING FOREIGN KEY(IDbuilding) REFERENCES dbo.Building (IDbuilding) ON DELETE CASCADE;
ALTER TABLE dbo.Room
ADD
CONSTRAINT FK_ROOM_BUILDIN FOREIGN KEY(IDbuilding) REFERENCES dbo.Building(IDbuilding),
CONSTRAINT FK_ROOM_STAGES FOREIGN KEY(IDstage) REFERENCES dbo.Stages(IDstage) ON DELETE CASCADE;
ALTER TABLE dbo.Lab
ADD
CONSTRAINT FK_STAGES_LAB FOREIGN KEY(IDstage) REFERENCES dbo.STAGES(IDstage) ON DELETE CASCADE;
ALTER TABLE dbo.Departament
ADD
CONSTRAINT FK_DEPARTAMENT_LAB FOREIGN KEY(LabN) REFERENCES dbo.Lab(LabN) ON DELETE CASCADE;
ALTER TABLE dbo.Faculty
ADD
CONSTRAINT FK_FACULTY_DEPARTAMENT FOREIGN KEY(nameFacultry) REFERENCES dbo.Departament(nameFacultry) ON DELETE CASCADE;
|
IF NOT EXISTS (SELECT * FROM sys.columns
WHERE object_id = OBJECT_ID(N'[dbo].[uCommerce_ProductCatalog]')
AND name = 'DefinitionId'
)
BEGIN
ALTER TABLE uCommerce_ProductCatalog
ADD DefinitionId INT,
FOREIGN KEY(DefinitionId) REFERENCES uCommerce_Definition(DefinitionId);
END
|
-- CreateTable
CREATE TABLE "User" (
"id" TEXT NOT NULL,
"avatar" TEXT,
"name" TEXT NOT NULL,
"email" TEXT NOT NULL,
"password" TEXT NOT NULL,
"last_login_at" TIMESTAMP(3) NOT NULL,
CONSTRAINT "User_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
|
# todo create an index on movie ids and another one on movies.title
CREATE INDEX movie_ids ON movies (id);
CREATE INDEX movie_titles ON movies (title);
SELECT * FROM movies WHERE title = 'Finding Nemo';
CREATE INDEX movie_ids_titles ON movies (title, id);
SHOW ENGINES;
# Pros: SELECT is much faster
# Cons: INSERT, UPDATE, DELETE is much slower
|
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 11, 2021 at 04:40 AM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 8.0.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
INSERT INTO `user` (`id`, `username`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `role_id`, `status`, `created_at`, `updated_at`, `verification_token`) VALUES
(1, 'superuser', '0vMqX5qhszCkyLQuh89zyPl8UYG5PmZ7', '$2y$13$eFPKcD6pCoMaa9cBKw0pZ.A.FMk4oSUjlsCSTOJ7VAgOKx.fg9LU.', NULL, 'superuser@mail.com', 1, 10, 1623378579, 1623378625, 'hmM8UVnHeuOtx6F4PnwNzpP51xedDSwE_1623378579'),
(2, 'admin', 'Kzq2ibhUVzGhjs67Qzz4BMfdqbUW68bu', '$2y$13$ctjPcz6WQa261D4JM9y2J.IYWZS2ZRcHvcUg2DUkTJRYLOfNdS2cu', NULL, 'admin@admin.com', 2, 10, 1623378656, 1623378697, 'Ulq1K3GOFgfR1jgtg-L-aDk9myRKY2Zf_1623378656'),
(3, 'operator', 'LTzOuGzSRqdxoCpdjTcVxwgMe9frUEDi', '$2y$13$iSMY9ZVphM9nW32YViXBzetV/C.B1KOQcCe37RqsmKr6bu/N30nBW', NULL, 'operator@mail.com', 3, 10, 1623378736, 1623378764, 'sOmDSuYPRPs2gmFXgZqJgJ9q8lOH7wEp_1623378736'),
(4, 'dokter', 'EtGmoseDo3KOXsa9XSIvwTwg5BJ-7_y8', '$2y$13$tM7KFG1Z3ijTPRkVdlKAqOdEZGwBASaEuhR2Lcarq8N6sZjssgwDi', NULL, 'dokter@mail.com', 4, 10, 1623378821, 1623378842, 'kt5SosuN8lXswNCn5Fur1EW5iZ_-8ixJ_1623378821');
|
#|No especifica características especiales de formato
e|Manuscrito
j|Tarjeta postal
k|Calendario
l|Rompecabezas
n|Juego
o|Mapa mural
p|Juego de naipes
r|Hojas sueltas
z|Otro
|No se provee información
|
/*
Navicat MySQL Data Transfer
Source Server : MySQL55
Source Server Version : 50523
Source Host : localhost:3399
Source Database : yii2-brainbase
Target Server Type : MYSQL
Target Server Version : 50523
File Encoding : 65001
Date: 2017-03-12 19:45:36
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for setting
-- ----------------------------
DROP TABLE IF EXISTS `setting`;
CREATE TABLE `setting` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`category` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`value` text COLLATE utf8_unicode_ci,
`type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'string',
`input` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'textInput',
`items` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`options` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`label_options` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`hint` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`hint_options` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique-category-key` (`category`,`key`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ----------------------------
-- Records of setting
-- ----------------------------
INSERT INTO `setting` VALUES ('1', 'site', 'name', 'My Application', 'string', 'textInput', null, '', '', 'Setup <b>site name</b>.', '');
INSERT INTO `setting` VALUES ('2', 'site', 'brandLabel', '<img src=\"{themeurl}/image/logo.png\" title=\"My Company\"/>', 'string', 'textInput', null, '', '', 'Setup <b>site brand label</b>.', '');
INSERT INTO `setting` VALUES ('3', 'site', 'brandUrl', 'http://www.brainbook.cc', 'string', 'textInput', null, '', '', 'Setup <b>site brand url</b>.', '');
INSERT INTO `setting` VALUES ('4', 'site', 'adminEmail', 'admin@example.com', 'string', 'textInput', null, null, null, 'Setup <b>admin email</b>.', null);
INSERT INTO `setting` VALUES ('5', 'site', 'supportEmail', 'support@example.com', 'string', 'textInput', null, null, null, 'Setup <b>support email</b>.', null);
INSERT INTO `setting` VALUES ('6', 'site', 'serviceEmail', 'service@example.com', 'string', 'textInput', null, null, null, 'Setup <b>service email</b>.', null);
INSERT INTO `setting` VALUES ('18', 'theme', 'themes', 'a:2:{i:0;a:5:{s:5:\"title\";s:9:\"theme yii\";s:10:\"screenshot\";s:14:\"screenshot.jpg\";s:9:\"namespace\";s:18:\"yongtiger\\themeyii\";s:4:\"path\";s:19:\"@yongtiger/themeyii\";s:6:\"active\";b:0;}i:1;a:5:{s:5:\"title\";s:10:\"themes yii\";s:10:\"screenshot\";s:14:\"screenshot.jpg\";s:9:\"namespace\";s:23:\"themes\\yii2themeyii\\src\";s:4:\"path\";s:24:\"@themes/yii2themeyii/src\";s:6:\"active\";b:0;}}', 'array', 'textInput', null, null, null, null, null);
|
-- MySQL dump 9.11
--
-- Host: localhost Database: userstamp_test
-- ------------------------------------------------------
-- Server version 4.0.24
--
-- Table structure for table `entries`
--
DROP TABLE IF EXISTS users;
CREATE TABLE users (
id int(11) NOT NULL auto_increment,
name varchar(255),
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS customers;
CREATE TABLE customers (
id int(11) NOT NULL auto_increment,
name varchar(255),
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS entries;
CREATE TABLE entries (
id int(11) NOT NULL auto_increment,
name varchar(255),
created_by int(11) default 0,
updated_by int(11) default 0,
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS posts;
CREATE TABLE posts (
id int(11) NOT NULL auto_increment,
name varchar(255),
created_by int(11) default 0,
updated_by int(11) default 0,
PRIMARY KEY (id)
) TYPE=MyISAM;
|
-- reservations
SELECT room_id, date_in, date_out, client_id
FROM reservations
WHERE
NOT (
date_out < '2017-01-06' OR
date_in > '2017-01-07'
)
and room_id = 3
|
-- preSHA1sum: 5f22e538285f79ec558e16dbfeb0b34a36e4da19
-- postSHA1sum: 6620c14bb4aaafdcf142022b5cef7f74ee7c7383
create table yat (
yet_another_column text
);
|
create table DDCSD_SCRIPT_CATEGORY (
ID varchar(36) not null,
VERSION integer not null,
CREATE_TS timestamp,
CREATED_BY varchar(50),
UPDATE_TS timestamp,
UPDATED_BY varchar(50),
DELETE_TS timestamp,
DELETED_BY varchar(50),
--
NAME varchar(255) not null,
CODE varchar(255) not null,
--
primary key (ID)
);
|
-------------------------------------------------------------------------------
-- Convert 2D to 3D using a DEM
-------------------------------------------------------------------------------
DROP TYPE IF EXISTS elevation_infos CASCADE;
CREATE TYPE elevation_infos AS (
draped geometry,
slope float,
min_elevation integer,
max_elevation integer,
positive_gain integer,
negative_gain integer
);
CREATE OR REPLACE FUNCTION geotrek.ft_smooth_line(geom geometry)
RETURNS SETOF geometry AS $$
DECLARE
current geometry;
points3d geometry[];
ele integer;
last_ele integer;
last_last_ele integer;
BEGIN
points3d := ARRAY[]::geometry[];
ele := NULL;
last_ele := NULL;
last_last_ele := NULL;
FOR current IN SELECT (ST_DumpPoints(ST_Force3D(geom))).geom AS geom LOOP
-- smoothing with last element
ele := (ST_Z(current)::integer + coalesce(last_ele, ST_Z(current)::integer)) / 2;
points3d := array_append(points3d, ST_MakePoint(ST_X(current), ST_Y(current), ele));
last_last_ele := last_ele;
last_ele := ele;
END LOOP;
RETURN QUERY SELECT (ST_DumpPoints(ST_SetSRID(ST_MakeLine(points3d), ST_SRID(geom)))).geom as geom;
END;
$$ LANGUAGE plpgsql;
CREATE OR REPLACE FUNCTION geotrek.ft_smooth_line(
linegeom geometry,
step integer)
RETURNS SETOF geometry AS $$
-- function moving average on altitude lines with specified step
DECLARE
points geometry[];
points_output geometry[];
current_values float;
count_values integer;
val geometry;
element geometry;
BEGIN
IF step <= 0
THEN
RETURN QUERY SELECT * FROM ft_smooth_line(linegeom);
END IF;
FOR element in SELECT (ST_DumpPoints(linegeom)).geom LOOP
points := array_append(points, element);
END LOOP;
FOR i IN 0 .. array_length(points, 1) LOOP
current_values := 0.0;
count_values := 0;
FOREACH val in ARRAY points[i-step:i+step] LOOP
-- val is null when out of array
IF val IS NOT NULL
THEN
count_values := count_values + 1;
current_values := current_values + ST_Z(val);
END IF;
END LOOP;
points_output := array_append(points_output, ST_MAKEPOINT(ST_X(points[i]), ST_Y(points[i]), (current_values / count_values)::integer));
END LOOP;
--RAISE EXCEPTION 'Nonexistent ID --> %', ST_ASEWKT(ST_SetSRID(ST_MakeLine(points_output), ST_SRID(linegeom)));
RETURN QUERY SELECT (ST_DumpPoints(ST_SetSRID(ST_MakeLine(points_output), ST_SRID(linegeom)))).geom as geom;
END;
$$ LANGUAGE plpgsql;
CREATE OR REPLACE FUNCTION geotrek.ft_drape_line(linegeom geometry, step integer)
RETURNS SETOF geometry AS $$
DECLARE
points geometry[];
result geometry[];
BEGIN
-- Use sampling steps for draping geometry on DEM
-- http://blog.mathieu-leplatre.info/drape-lines-on-a-dem-with-postgis.html
-- But make sure to keep original points so 2D geometry and length is preserved
-- Step is the maximal distance between two points
IF ST_ZMin(linegeom) < 0 OR ST_ZMax(linegeom) > 0 THEN
-- Already 3D, do not need to drape.
-- (Use-case is when assembling paths geometries to build topologies)
RETURN QUERY SELECT (ST_DumpPoints(ST_Force3D(linegeom))).geom AS geom;
ELSE
RETURN QUERY
WITH -- Get endings of each segment of the line
r1 AS (SELECT ST_PointN(linegeom, generate_series(1, ST_NPoints(linegeom)-1)) as p1,
ST_PointN(linegeom, generate_series(2, ST_NPoints(linegeom))) as p2,
generate_series(2, ST_NPoints(linegeom)) = ST_NPoints(linegeom) as is_last),
-- Get the number of sub-segments
r2 AS (SELECT p1, p2, is_last, trunc(ST_Distance(p1, p2) / step)::integer + 1 AS n FROM r1),
-- Get relative positions of new points along the segment (without last point, except for last segment)
r3 AS (SELECT p1, p2, generate_series(0, CASE WHEN is_last THEN n ELSE n - 1 END)/n::double precision AS f FROM r2),
-- Create new points
r4 AS (SELECT ST_MakePoint(ST_X(p1) + (ST_X(p2) - ST_X(p1)) * f,
ST_Y(p1) + (ST_Y(p2) - ST_Y(p1)) * f) as p,
ST_SRID(p1) AS srid FROM r3),
-- Set SRID of new points
r5 AS (SELECT ST_SetSRID(p, srid) as p FROM r4)
SELECT add_point_elevation(p) FROM r5;
END IF;
END;
$$ LANGUAGE plpgsql;
CREATE OR REPLACE FUNCTION geotrek.add_point_elevation(geom geometry) RETURNS geometry AS $$
DECLARE
ele integer;
geom3d geometry;
BEGIN
ele := coalesce(ST_Z(geom)::integer, 0);
IF ele > 0 THEN
RETURN geom;
END IF;
-- Ensure we have a DEM
PERFORM * FROM raster_columns WHERE r_table_name = 'mnt';
IF FOUND THEN
SELECT ST_Value(rast, 1, geom)::integer INTO ele
FROM mnt
WHERE ST_Intersects(rast, geom);
IF NOT FOUND THEN
ele := 0;
END IF;
END IF;
geom3d := ST_MakePoint(ST_X(geom), ST_Y(geom), ele);
geom3d := ST_SetSRID(geom3d, ST_SRID(geom));
RETURN geom3d;
END;
$$ LANGUAGE plpgsql;
CREATE OR REPLACE FUNCTION geotrek.ft_elevation_infos(geom geometry) RETURNS elevation_infos AS $$
DECLARE
num_points integer;
current geometry;
points3d geometry[];
ele integer;
last_ele integer;
last_last_ele integer;
result elevation_infos;
BEGIN
-- Skip if no DEM (speed-up tests)
PERFORM * FROM raster_columns WHERE r_table_name = 'mnt';
IF NOT FOUND THEN
SELECT ST_Force3DZ(geom), 0.0, 0, 0, 0, 0 INTO result;
RETURN result;
END IF;
-- Ensure parameter is a point or a line
IF ST_GeometryType(geom) NOT IN ('ST_Point', 'ST_LineString') THEN
SELECT ST_Force3DZ(geom), 0.0, 0, 0, 0, 0 INTO result;
RETURN result;
END IF;
-- Specific case for points
IF ST_GeometryType(geom) = 'ST_Point' THEN
current := add_point_elevation(geom);
SELECT current, 0.0, ST_Z(current), ST_Z(current), 0, 0 INTO result;
RETURN result;
END IF;
-- Now geom is LineString only.
-- Compute gain and elevation using (higher resolution)
result.positive_gain := 0;
result.negative_gain := 0;
last_ele := NULL;
last_last_ele := NULL;
points3d := ARRAY[]::geometry[];
FOR current IN SELECT * FROM ft_drape_line(geom, {{ALTIMETRIC_PROFILE_PRECISION}}) LOOP
-- Smooth the elevation profile
ele := ST_Z(current);
-- Create the 3d points
points3d := array_append(points3d, current);
-- Add positive only if ele - last_ele > 0
result.positive_gain := result.positive_gain + greatest(ele - coalesce(last_ele, ele), 0);
-- Add negative only if ele - last_ele < 0
result.negative_gain := result.negative_gain + least(ele - coalesce(last_ele, ele), 0);
last_ele := ele;
last_last_ele := last_ele;
END LOOP;
result.draped := ST_SetSRID(ST_MakeLine(points3d), ST_SRID(geom));
result.min_elevation := ST_ZMin(result.draped)::integer;
result.max_elevation := ST_ZMax(result.draped)::integer;
-- Compute slope
result.slope := 0.0;
IF ST_Length2D(geom) > 0 THEN
result.slope := (result.max_elevation - result.min_elevation) / ST_Length2D(geom);
END IF;
RETURN result;
END;
$$ LANGUAGE plpgsql;
CREATE OR REPLACE FUNCTION geotrek.ft_elevation_infos(geom geometry, epsilon float) RETURNS elevation_infos AS $$
DECLARE
num_points integer;
current geometry;
points3d geometry[];
points3d_smoothed geometry[];
points3d_simplified geometry[];
result elevation_infos;
previous_geom geometry;
BEGIN
-- Skip if no DEM (speed-up tests)
PERFORM * FROM raster_columns WHERE r_table_name = 'mnt';
IF NOT FOUND THEN
SELECT ST_Force3DZ(geom), 0.0, 0, 0, 0, 0 INTO result;
RETURN result;
END IF;
-- Ensure parameter is a point or a line
IF ST_GeometryType(geom) NOT IN ('ST_Point', 'ST_LineString') THEN
SELECT ST_Force3DZ(geom), 0.0, 0, 0, 0, 0 INTO result;
RETURN result;
END IF;
-- Specific case for points
IF ST_GeometryType(geom) = 'ST_Point' THEN
current := add_point_elevation(geom);
SELECT current, 0.0, ST_Z(current), ST_Z(current), 0, 0 INTO result;
RETURN result;
END IF;
-- Case of epsilon <= 0:
IF epsilon <= 0
THEN
SELECT * FROM ft_elevation_infos(geom) INTO result;
RETURN result;
END IF;
-- Now geom is LineString only.
result.positive_gain := 0;
result.negative_gain := 0;
points3d := ARRAY[]::geometry[];
points3d_smoothed := ARRAY[]::geometry[];
points3d_simplified := ARRAY[]::geometry[];
FOR current IN SELECT * FROM ft_drape_line(geom, {{ALTIMETRIC_PROFILE_PRECISION}}) LOOP
-- Create the 3d points
points3d := array_append(points3d, current);
END LOOP;
-- smoothing line
FOR current IN SELECT * FROM ft_smooth_line(St_MakeLine(points3d), {{ALTIMETRIC_PROFILE_AVERAGE}}) LOOP
-- Create the 3d points
points3d_smoothed := array_append(points3d_smoothed, current);
END LOOP;
-- simplify gain calculs
previous_geom := NULL;
-- Compute gain using simplification
-- see http://www.postgis.org/docs/ST_Simplify.html
-- https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm
FOR current IN SELECT (ST_DUMPPOINTS(ST_MAKELINE(points3d_smoothed))).geom
LOOP
-- Add positive only if current - previous_geom > 0
result.positive_gain := result.positive_gain + greatest(ST_Z(current) - coalesce(ST_Z(previous_geom),
ST_Z(current)), 0);
-- Add negative only if current - previous_geom < 0
result.negative_gain := result.negative_gain + least(ST_Z(current) - coalesce(ST_Z(previous_geom),
ST_Z(current)), 0);
previous_geom := current;
END LOOP;
result.draped := ST_SetSRID(ST_MakeLine(points3d_smoothed), ST_SRID(geom));
-- Compute elevation using (higher resolution)
result.min_elevation := ST_ZMin(result.draped)::integer;
result.max_elevation := ST_ZMax(result.draped)::integer;
-- Compute slope
result.slope := 0.0;
IF ST_Length2D(geom) > 0 THEN
result.slope := (result.max_elevation - result.min_elevation) / ST_Length2D(geom);
END IF;
RETURN result;
END;
$$ LANGUAGE plpgsql;
|
/*
Navicat MySQL Data Transfer
Source Server : zltgov
Source Server Version : 50717
Source Host : localhost:3306
Source Database : zltgov
Target Server Type : MYSQL
Target Server Version : 50717
File Encoding : 65001
Date: 2018-01-23 15:54:30
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `categories`
-- ----------------------------
DROP TABLE IF EXISTS `categories`;
CREATE TABLE `categories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT '',
`keywords` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT '',
`description` varchar(150) COLLATE utf8mb4_unicode_ci DEFAULT '',
`pid` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT '0',
`status` varchar(2) COLLATE utf8mb4_unicode_ci DEFAULT '1',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`sort` int(10) DEFAULT NULL,
`page_type` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '分类页面类型',
`level` int(11) DEFAULT NULL COMMENT '层级',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=727 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of categories
-- ----------------------------
INSERT INTO `categories` VALUES ('36', '政务公开', '', '', '0', '1', '2017-07-06 00:58:05', '2017-07-06 00:58:05', '0', null, '1');
INSERT INTO `categories` VALUES ('37', '领导信息', '', '', '36', '1', '2017-07-06 00:58:14', '2017-07-06 00:58:14', '0', null, '2');
INSERT INTO `categories` VALUES ('38', '公开目录', '', '', '36', '1', '2017-07-06 00:58:34', '2017-09-11 08:29:03', '0', '1', '2');
INSERT INTO `categories` VALUES ('39', '法规文件', '', '', '36', '1', '2017-07-06 00:58:46', '2017-07-06 00:58:46', '0', null, '2');
INSERT INTO `categories` VALUES ('40', '政府报告', '', '', '36', '1', '2017-07-06 00:59:25', '2017-09-11 07:42:14', '0', null, '2');
INSERT INTO `categories` VALUES ('41', '重点领域信息公开', '', '', '36', '1', '2017-07-06 00:59:50', '2017-08-24 14:33:41', '0', '1', '2');
INSERT INTO `categories` VALUES ('42', '人事任免', '', '', '36', '1', '2017-07-06 00:59:55', '2017-07-06 00:59:55', '0', null, '2');
INSERT INTO `categories` VALUES ('43', '应急管理', '', '', '36', '1', '2017-07-06 01:00:00', '2017-07-06 01:00:00', '0', null, '2');
INSERT INTO `categories` VALUES ('45', '热点回应', '', '', '36', '1', '2017-07-07 01:35:28', '2017-09-14 07:29:10', '0', '1', '2');
INSERT INTO `categories` VALUES ('46', '财政公开', '', '', '36', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('47', '农村产权交易中心', '', '', '36', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('48', '依法行政', '', '', '36', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', '1', '2');
INSERT INTO `categories` VALUES ('49', '行政事业性收费', '', '', '36', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('50', '价格收费', '', '', '36', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('51', '工作报告', '', '', '36', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', '1', '2');
INSERT INTO `categories` VALUES ('52', '统计信息', '', '', '36', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('53', '规划计划', '', '', '36', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('54', '公共事业', '', '', '36', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('59', '政务公开制度', '', '', '36', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', '1', '2');
INSERT INTO `categories` VALUES ('60', '依申请公开', '', '', '36', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', '1', '2');
INSERT INTO `categories` VALUES ('61', '政府信息公开指南', '', '', '36', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', '1', '2');
INSERT INTO `categories` VALUES ('62', '政府信息公开年报', '', '', '36', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', '1', '2');
INSERT INTO `categories` VALUES ('64', '走进扎兰', '', '', '0', '1', '2017-07-07 01:35:28', '2017-07-17 02:27:53', '0', null, '1');
INSERT INTO `categories` VALUES ('65', '自然地理', '', '', '64', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('66', '历史沿革', '', '', '64', '1', '2017-07-07 01:35:28', '2017-09-12 02:53:47', '0', null, '2');
INSERT INTO `categories` VALUES ('67', '行政区划', '', '', '64', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('68', '人口概况', '', '', '64', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('69', '民族特征', '', '', '64', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('70', '经济发展', '', '', '64', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('71', '社会事业', '', '', '64', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('72', '民生保障', '', '', '64', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('73', '名优特产', '', '', '64', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('74', '革命老区', '', '', '64', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('76', '办事服务', '', '', '0', '1', '2017-07-07 01:35:28', '2017-08-24 15:18:37', '0', null, '1');
INSERT INTO `categories` VALUES ('77', '服务个人', '', '', '76', '1', '2017-07-07 01:35:28', '2017-08-24 15:21:14', '0', null, '2');
INSERT INTO `categories` VALUES ('78', '服务企业', '', '', '76', '1', '2017-07-07 01:35:28', '2017-08-24 15:21:32', '0', null, '2');
INSERT INTO `categories` VALUES ('79', '综合服务', '', '', '76', '1', '2017-07-07 01:35:28', '2017-09-12 01:48:06', '0', null, '2');
INSERT INTO `categories` VALUES ('80', '休闲旅游', '', '', '0', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '1');
INSERT INTO `categories` VALUES ('81', '旅游景点', '', '', '80', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('82', '民俗风情', '', '', '80', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('83', '旅游线路', '', '', '80', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('84', '吃住行娱', '', '', '80', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('85', '特产购物', '', '', '80', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '2');
INSERT INTO `categories` VALUES ('87', '外事侨务', '', '', '79', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '3');
INSERT INTO `categories` VALUES ('88', '政府法制', '', '', '79', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '3');
INSERT INTO `categories` VALUES ('89', '金融服务', '', '', '79', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '3');
INSERT INTO `categories` VALUES ('90', '电子商务', '', '', '79', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '3');
INSERT INTO `categories` VALUES ('91', '就业创业', '', '', '79', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '3');
INSERT INTO `categories` VALUES ('92', '平安扎兰', '', '', '79', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '3');
INSERT INTO `categories` VALUES ('93', '党建阵地', '', '', '79', '1', '2017-07-07 01:35:28', '2017-09-26 06:35:45', '0', null, '3');
INSERT INTO `categories` VALUES ('94', '互动交流', '', '', '0', '1', '2017-07-07 01:35:28', '2017-07-07 01:35:28', '0', null, '1');
INSERT INTO `categories` VALUES ('95', '市委', '', '', '37', '1', '2017-07-12 03:31:36', '2017-07-16 23:22:47', '0', '2', '3');
INSERT INTO `categories` VALUES ('96', '市人大', '', '', '37', '1', '2017-07-16 23:23:17', '2017-07-16 23:23:17', '0', '2', '3');
INSERT INTO `categories` VALUES ('97', '市政府', '', '', '37', '1', '2017-07-16 23:23:34', '2017-07-16 23:23:34', '0', '2', '3');
INSERT INTO `categories` VALUES ('98', '市政协', '', '', '37', '1', '2017-07-16 23:24:08', '2017-07-16 23:24:08', '0', '2', '3');
INSERT INTO `categories` VALUES ('99', '政府办公室', '', '', '3800', '1', '2017-07-16 23:33:46', '2017-07-16 23:33:46', '0', null, '3');
INSERT INTO `categories` VALUES ('100', '发展和改革局', '', '', '3800', '1', '2017-07-16 23:34:51', '2017-07-16 23:34:51', '0', null, '3');
INSERT INTO `categories` VALUES ('101', '经济和信息化局', '', '', '3800', '1', '2017-07-16 23:35:04', '2017-07-16 23:35:04', '0', null, '3');
INSERT INTO `categories` VALUES ('102', '民族宗教事务局', '', '', '3800', '1', '2017-07-16 23:35:19', '2017-07-16 23:35:19', '0', null, '3');
INSERT INTO `categories` VALUES ('103', '公安局', '', '', '3800', '1', '2017-07-16 23:35:36', '2017-07-16 23:35:36', '0', null, '3');
INSERT INTO `categories` VALUES ('104', '民政局', '', '', '3800', '1', '2017-07-16 23:36:16', '2017-07-16 23:36:16', '0', null, '3');
INSERT INTO `categories` VALUES ('105', '司法局', '', '', '3800', '1', '2017-07-16 23:36:30', '2017-07-16 23:36:30', '0', null, '3');
INSERT INTO `categories` VALUES ('106', '财政局', '', '', '3800', '1', '2017-07-16 23:37:16', '2017-07-16 23:37:16', '0', null, '3');
INSERT INTO `categories` VALUES ('107', '人力资源和社会保障局', '', '', '3800', '1', '2017-07-16 23:37:26', '2017-07-16 23:37:26', '0', null, '3');
INSERT INTO `categories` VALUES ('108', '安监局', '', '', '3800', '1', '2017-07-16 23:37:40', '2017-07-16 23:37:40', '0', null, '3');
INSERT INTO `categories` VALUES ('109', '住房和城乡建设局', '', '', '3800', '1', '2017-07-16 23:37:51', '2017-07-16 23:37:51', '0', null, '3');
INSERT INTO `categories` VALUES ('110', '教育局', '', '', '3800', '1', '2017-07-16 23:38:07', '2017-07-16 23:38:07', '0', null, '3');
INSERT INTO `categories` VALUES ('111', '科技局', '', '', '3800', '1', '2017-07-16 23:38:49', '2017-07-16 23:38:49', '0', null, '3');
INSERT INTO `categories` VALUES ('112', '环境保护局', '', '', '3800', '1', '2017-07-16 23:39:01', '2017-07-16 23:39:01', '0', null, '3');
INSERT INTO `categories` VALUES ('113', '交通运输局', '', '', '3800', '1', '2017-07-16 23:39:13', '2017-07-16 23:39:13', '0', null, '3');
INSERT INTO `categories` VALUES ('114', '水务局', '', '', '3800', '1', '2017-07-16 23:39:23', '2017-07-16 23:39:23', '0', null, '3');
INSERT INTO `categories` VALUES ('115', '农牧业局', '', '', '3800', '1', '2017-07-16 23:42:32', '2017-07-16 23:42:32', '0', null, '3');
INSERT INTO `categories` VALUES ('116', '林业局', '', '', '3800', '1', '2017-07-16 23:42:43', '2017-07-16 23:42:43', '0', null, '3');
INSERT INTO `categories` VALUES ('117', '商务粮食局', '', '', '3800', '1', '2017-07-16 23:43:02', '2017-07-16 23:43:02', '0', null, '3');
INSERT INTO `categories` VALUES ('118', '文化体育新闻出版广电局', '', '', '3800', '1', '2017-07-16 23:43:15', '2017-07-16 23:43:15', '0', null, '3');
INSERT INTO `categories` VALUES ('119', '卫生和计划生育局', '', '', '3800', '1', '2017-07-16 23:43:47', '2017-07-16 23:43:47', '0', null, '3');
INSERT INTO `categories` VALUES ('120', '审计局', '', '', '3800', '1', '2017-07-16 23:44:01', '2017-07-16 23:44:01', '0', null, '3');
INSERT INTO `categories` VALUES ('121', '统计局', '', '', '3800', '1', '2017-07-16 23:44:14', '2017-07-16 23:44:14', '0', null, '3');
INSERT INTO `categories` VALUES ('122', '旅游局', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('123', '食品药品监督管理局', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('124', '城市管理行政执法局', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('125', '规划局', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('126', '国土资源局', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('127', '农机局', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('128', '信访局', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('129', '农牧业产业化办公室', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('130', '爱卫办', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('131', '对外开放办公室', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('132', '供销合作联社', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('133', '移民局', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('134', '扶贫开发办公室', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('135', '河西新区管委会', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('136', '行政审批服务中心', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('137', '城市建设资金管理中心', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('138', '民航支线机场建设领导小组办公室', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('139', '土地储备交易中心', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('140', '呼伦贝尔岭东工业开发区管委会', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('141', '风景名胜区管委会', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('142', '市场监督管理局', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('143', '正阳街道办事处', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('144', '兴华街道办事处', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('145', '铁东街道办事处', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('146', '繁荣街道办事处', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('147', '向阳街道办事处', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('148', '河西街道办事处', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('149', '高台子街道办事处', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('150', '蘑菇气镇', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('151', '成吉思汗镇', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('152', '卧牛河镇', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('153', '浩饶山镇', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('154', '中和镇', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('155', '大河湾镇', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('156', '达斡尔民族乡', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('157', '柴河镇', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('158', '洼堤乡', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('159', '萨马街鄂温克民族乡', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('160', '南木鄂伦春民族乡', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('162', '政办文件', '', '', '36', '1', '2017-07-17 00:11:18', '2017-07-17 00:11:18', '0', '1', '2');
INSERT INTO `categories` VALUES ('163', '政府文件', '', '', '36', '1', '2017-07-17 00:11:28', '2017-07-17 00:11:28', '0', '1', '2');
INSERT INTO `categories` VALUES ('164', '规范性文件', '', '', '39', '1', '2017-07-17 00:11:38', '2017-07-17 00:11:38', '0', null, '3');
INSERT INTO `categories` VALUES ('165', '政策法规', '', '', '39', '1', '2017-07-17 00:11:51', '2017-07-17 00:11:51', '0', null, '3');
INSERT INTO `categories` VALUES ('166', '哈多河镇', '', '', '3800', '1', '2017-07-16 23:44:27', '2017-07-16 23:44:27', '0', null, '3');
INSERT INTO `categories` VALUES ('167', '政策解读', '', '', '36', '1', '2017-07-17 00:12:06', '2017-07-17 00:12:06', '0', null, '3');
INSERT INTO `categories` VALUES ('168', '环境保护监督检查', '', '', '228', '1', '2017-07-17 00:13:06', '2017-07-17 00:13:06', '0', null, '3');
INSERT INTO `categories` VALUES ('169', '公共卫生监督检查', '', '', '228', '1', '2017-07-17 00:13:15', '2017-07-17 00:13:15', '0', null, '3');
INSERT INTO `categories` VALUES ('170', '安全生产监督检查', '', '', '228', '1', '2017-07-17 00:13:26', '2017-07-17 00:13:26', '0', null, '3');
INSERT INTO `categories` VALUES ('171', '食品药品监督检查', '', '', '228', '1', '2017-07-17 00:13:44', '2017-07-17 00:13:44', '0', null, '3');
INSERT INTO `categories` VALUES ('172', '产品质量监督检查', '', '', '228', '1', '2017-07-17 00:13:56', '2017-07-17 00:13:56', '0', null, '3');
INSERT INTO `categories` VALUES ('189', '应急动态', '', '', '43', '1', '2017-07-17 00:26:43', '2017-07-17 00:26:43', '0', null, '3');
INSERT INTO `categories` VALUES ('190', '预案法规', '', '', '43', '1', '2017-07-17 00:26:54', '2017-07-17 00:26:54', '0', null, '3');
INSERT INTO `categories` VALUES ('191', '应急常识', '', '', '43', '1', '2017-07-17 00:27:14', '2017-07-17 00:27:14', '0', null, '3');
INSERT INTO `categories` VALUES ('192', '建设工程', '', '', '47', '1', '2017-07-17 00:28:40', '2017-07-17 00:28:40', '0', null, '3');
INSERT INTO `categories` VALUES ('193', '政府采购', '', '', '47', '1', '2017-07-17 00:29:12', '2017-07-17 00:29:12', '0', null, '3');
INSERT INTO `categories` VALUES ('194', '产权交易', '', '', '47', '1', '2017-07-17 00:29:24', '2017-07-17 00:29:24', '0', null, '3');
INSERT INTO `categories` VALUES ('195', '土地交易', '', '', '47', '1', '2017-07-17 00:30:28', '2017-07-17 00:30:28', '0', null, '3');
INSERT INTO `categories` VALUES ('196', '矿产交易', '', '', '47', '1', '2017-07-17 00:30:39', '2017-07-17 00:30:39', '0', null, '3');
INSERT INTO `categories` VALUES ('197', '其它交易', '', '', '47', '1', '2017-07-17 00:30:50', '2017-07-17 00:30:50', '0', null, '3');
INSERT INTO `categories` VALUES ('198', '政策法规', '', '', '47', '1', '2017-07-17 00:31:00', '2017-07-17 00:31:00', '0', null, '3');
INSERT INTO `categories` VALUES ('199', '中心公告', '', '', '47', '1', '2017-07-17 00:31:12', '2017-07-17 00:31:12', '0', null, '3');
INSERT INTO `categories` VALUES ('201', '行政许可', '', '', '63', '1', '2017-07-17 00:34:38', '2017-07-17 00:34:38', '0', null, '3');
INSERT INTO `categories` VALUES ('202', '行政处罚', '', '', '63', '1', '2017-07-17 00:34:52', '2017-07-17 00:34:52', '0', null, '3');
INSERT INTO `categories` VALUES ('205', '新闻动态', '', '', '0', '1', '2017-07-17 02:06:52', '2017-09-29 03:00:57', '0', null, '1');
INSERT INTO `categories` VALUES ('211', '政务要闻', '', '', '205', '1', '2017-07-17 05:23:09', '2017-08-24 03:20:04', '1', null, '2');
INSERT INTO `categories` VALUES ('212', '部门动态', '', '', '205', '1', '2017-07-17 05:25:20', '2017-07-17 05:25:20', '2', null, '2');
INSERT INTO `categories` VALUES ('213', '乡镇之窗', '', '', '205', '1', '2017-07-17 05:25:40', '2017-07-17 05:25:40', '3', null, '2');
INSERT INTO `categories` VALUES ('214', '视频新闻', '', '', '205', '1', '2017-07-17 05:26:12', '2017-07-17 05:26:12', '4', null, '2');
INSERT INTO `categories` VALUES ('215', '通告公示', '', '', '205', '1', '2017-07-17 05:27:05', '2017-07-17 05:27:05', '5', null, '2');
INSERT INTO `categories` VALUES ('216', '社会热点', '', '', '205', '1', '2017-07-19 23:03:35', '2017-07-19 23:03:35', '6', null, '2');
INSERT INTO `categories` VALUES ('218', '政府督查', '', '', '36', '1', '2017-07-19 23:15:23', '2017-07-19 23:15:23', '1', null, '2');
INSERT INTO `categories` VALUES ('219', '政策文件', '', '', '218', '1', '2017-07-19 23:15:50', '2017-07-19 23:15:50', '1', null, '3');
INSERT INTO `categories` VALUES ('220', '工作动态', '', '', '218', '1', '2017-07-19 23:16:05', '2017-07-19 23:16:05', '1', null, '3');
INSERT INTO `categories` VALUES ('221', '政府法制', '', '', '36', '1', '2017-07-19 23:17:41', '2017-07-19 23:17:41', '1', null, '2');
INSERT INTO `categories` VALUES ('222', '新法速递', '', '', '221', '1', '2017-07-19 23:18:06', '2017-07-19 23:18:06', '1', null, '3');
INSERT INTO `categories` VALUES ('223', '行政复议', '', '', '221', '1', '2017-07-19 23:18:35', '2017-07-19 23:18:35', '1', null, '3');
INSERT INTO `categories` VALUES ('224', '执法监督', '', '', '221', '1', '2017-07-19 23:18:50', '2017-07-19 23:18:50', '1', null, '3');
INSERT INTO `categories` VALUES ('225', '工作动态', '', '', '221', '1', '2017-07-19 23:19:08', '2017-07-19 23:19:08', '1', null, '3');
INSERT INTO `categories` VALUES ('226', '学习园地', '', '', '221', '1', '2017-07-19 23:19:47', '2017-07-19 23:19:47', '1', null, '3');
INSERT INTO `categories` VALUES ('227', '理论研究', '', '', '221', '1', '2017-07-19 23:20:17', '2017-07-19 23:20:17', '1', null, '3');
INSERT INTO `categories` VALUES ('228', '执法监督', '', '', '36', '1', '2017-07-19 23:23:53', '2017-09-11 08:36:00', '1', null, '2');
INSERT INTO `categories` VALUES ('229', '社会监督评议', '', '', '36', '1', '2017-07-19 23:26:41', '2017-09-11 08:42:44', '1', null, '2');
INSERT INTO `categories` VALUES ('234', '单位公告', '', '', '3600', '1', '2017-07-19 23:31:22', '2017-07-19 23:31:22', '1', null, '3');
INSERT INTO `categories` VALUES ('235', '电商扶贫', '', '', '36', '1', '2017-07-19 23:32:22', '2017-07-19 23:32:22', '1', null, '2');
INSERT INTO `categories` VALUES ('236', '发展规划', '', '', '36', '1', '2017-07-19 23:32:59', '2017-07-19 23:32:59', '1', null, '2');
INSERT INTO `categories` VALUES ('237', '扶持政策', '', '', '36', '1', '2017-07-19 23:33:27', '2017-07-19 23:33:27', '1', null, '2');
INSERT INTO `categories` VALUES ('238', '企事业单位信息公开', '', '', '36', '1', '2017-07-19 23:34:38', '2017-09-11 08:45:06', '1', null, '2');
INSERT INTO `categories` VALUES ('239', '政府采购', '', '', '36', '1', '2017-07-19 23:39:06', '2017-08-24 14:59:23', '1', null, '2');
INSERT INTO `categories` VALUES ('240', '基层信息公开', '', '', '36', '1', '2017-07-19 23:39:55', '2017-07-19 23:39:55', '1', null, '2');
INSERT INTO `categories` VALUES ('241', '计生办事公开', '', '', '36', '1', '2017-07-19 23:41:00', '2017-07-19 23:41:00', '1', null, '2');
INSERT INTO `categories` VALUES ('242', '两学一做', '', '', '36', '1', '2017-07-19 23:44:41', '2017-07-19 23:44:41', '1', null, '2');
INSERT INTO `categories` VALUES ('244', '国务院政策信息', '', '', '0', '1', '2017-07-24 02:43:32', '2017-07-24 02:43:32', '1', null, '1');
INSERT INTO `categories` VALUES ('245', '民意征集', '', '', '94', '1', '2017-07-24 02:46:54', '2017-09-12 02:24:28', '1', null, '2');
INSERT INTO `categories` VALUES ('247', '工作报告', '', '', '36', '1', '2017-07-24 02:59:07', '2017-07-24 02:59:07', '1', null, '2');
INSERT INTO `categories` VALUES ('248', '统计数据', '', '', '36', '1', '2017-07-24 03:01:45', '2017-07-24 03:01:45', '1', '1', '2');
INSERT INTO `categories` VALUES ('249', '投资环境', '', '', '526', '1', '2017-07-24 03:05:10', '2017-07-24 03:05:10', '1', null, '2');
INSERT INTO `categories` VALUES ('250', '招商项目', '', '', '526', '1', '2017-07-24 03:06:05', '2017-07-24 03:06:05', '1', null, '2');
INSERT INTO `categories` VALUES ('251', '投资成本', '', '', '526', '1', '2017-07-24 03:06:53', '2017-08-24 08:00:57', '1', null, '2');
INSERT INTO `categories` VALUES ('252', '投资程序', '', '', '526', '1', '2017-07-24 03:07:36', '2017-07-24 03:07:36', '1', null, '2');
INSERT INTO `categories` VALUES ('253', '权责清单', '', '', '41', '1', '2017-08-24 14:36:41', '2017-08-24 14:36:41', '1', null, '3');
INSERT INTO `categories` VALUES ('254', '建议提案办理', '', '', '41', '1', '2017-08-24 14:36:41', '2017-08-24 14:36:41', '1', null, '3');
INSERT INTO `categories` VALUES ('256', '统计数据信息', '', '', '41', '1', '2017-08-24 14:36:41', '2017-08-24 14:36:41', '1', null, '3');
INSERT INTO `categories` VALUES ('257', '财政预决算', '', '', '41', '1', '2017-08-24 14:36:41', '2017-08-24 14:36:41', '1', null, '3');
INSERT INTO `categories` VALUES ('258', '人事信息', '', '', '41', '1', '2017-08-24 14:36:41', '2017-11-29 08:04:07', '1', null, '3');
INSERT INTO `categories` VALUES ('259', '环境保护', '', '', '41', '1', '2017-08-24 14:36:41', '2017-08-24 14:36:41', '1', null, '3');
INSERT INTO `categories` VALUES ('260', '市长信箱', '', '', '94', '1', '2017-08-24 15:06:14', '2017-09-12 02:22:39', '1', null, '2');
INSERT INTO `categories` VALUES ('261', '部门信箱', '', '', '94', '1', '2017-08-24 15:06:14', '2017-09-12 02:23:08', '1', null, '2');
INSERT INTO `categories` VALUES ('262', '网上调查', '', '', '94', '1', '2017-08-24 15:06:14', '2017-09-12 02:23:42', '1', null, '2');
INSERT INTO `categories` VALUES ('263', '公共服务', '', '', '76', '1', '2017-08-24 15:24:17', '2017-08-24 15:24:17', '1', null, '2');
INSERT INTO `categories` VALUES ('264', '重点办事服务', '', '', '76', '1', '2017-08-24 15:24:18', '2017-08-24 15:24:18', '1', null, '2');
INSERT INTO `categories` VALUES ('265', '行政审批', '', '', '76', '1', '2017-08-24 15:24:19', '2017-08-24 15:24:19', '1', null, '2');
INSERT INTO `categories` VALUES ('266', '政府部门信息公开', '', '', '0', '1', '2017-09-11 06:59:08', '2017-09-11 07:01:40', '1', null, '2');
INSERT INTO `categories` VALUES ('267', '乡镇街道信息公开', '', '', '0', '1', '2017-09-11 07:00:22', '2017-09-11 07:01:23', '1', '1', '2');
INSERT INTO `categories` VALUES ('268', '发展和改革局', '', '', '266', '1', '2017-09-11 07:51:13', '2017-09-11 07:51:13', '98', '1', '3');
INSERT INTO `categories` VALUES ('269', '经济和信息化局', '', '', '266', '1', '2017-09-11 07:51:13', '2017-09-11 07:51:13', '97', '1', '3');
INSERT INTO `categories` VALUES ('270', '水务局', '', '', '266', '1', '2017-09-11 07:51:13', '2017-09-11 07:51:13', '81', '1', '3');
INSERT INTO `categories` VALUES ('271', '统计局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '96', '1', '3');
INSERT INTO `categories` VALUES ('272', '财政局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '95', '1', '3');
INSERT INTO `categories` VALUES ('273', '公安局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '95', '1', '3');
INSERT INTO `categories` VALUES ('274', '司法局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '94', '1', '3');
INSERT INTO `categories` VALUES ('275', '审计局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '93', '1', '3');
INSERT INTO `categories` VALUES ('276', '民政局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '92', '1', '3');
INSERT INTO `categories` VALUES ('277', '民族宗教事务局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '91', '1', '3');
INSERT INTO `categories` VALUES ('278', '人社局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '90', '1', '3');
INSERT INTO `categories` VALUES ('279', '信访局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '89', '1', '3');
INSERT INTO `categories` VALUES ('280', '安监局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '88', '1', '3');
INSERT INTO `categories` VALUES ('281', '住建局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '87', '1', '3');
INSERT INTO `categories` VALUES ('282', '规划局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '86', '1', '3');
INSERT INTO `categories` VALUES ('283', '人防办', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '85', '1', '3');
INSERT INTO `categories` VALUES ('284', '交通局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '84', '1', '3');
INSERT INTO `categories` VALUES ('285', '农牧业局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '83', '1', '3');
INSERT INTO `categories` VALUES ('286', '爱卫办', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '77', '1', '3');
INSERT INTO `categories` VALUES ('287', '食药监局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '76', '1', '3');
INSERT INTO `categories` VALUES ('288', '市场监督管理局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '75', '1', '3');
INSERT INTO `categories` VALUES ('289', '国土局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '74', '1', '3');
INSERT INTO `categories` VALUES ('290', '环保局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '73', '1', '3');
INSERT INTO `categories` VALUES ('291', '城管执法局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '72', '1', '3');
INSERT INTO `categories` VALUES ('292', '招商局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '71', '1', '3');
INSERT INTO `categories` VALUES ('293', '供销社', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '70', '1', '3');
INSERT INTO `categories` VALUES ('294', '移民局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '69', '1', '3');
INSERT INTO `categories` VALUES ('295', '农机局', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '68', '1', '3');
INSERT INTO `categories` VALUES ('296', '河西新区管委会', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '67', '1', '3');
INSERT INTO `categories` VALUES ('297', '机场办', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '66', '1', '3');
INSERT INTO `categories` VALUES ('298', '土地储备交易中心', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '65', '1', '3');
INSERT INTO `categories` VALUES ('299', '政府服务中心', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '64', '1', '3');
INSERT INTO `categories` VALUES ('300', '城市建设资金管理中心', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '63', '1', '3');
INSERT INTO `categories` VALUES ('301', '呼伦贝尔岭东工业开发区管委会', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '62', '1', '3');
INSERT INTO `categories` VALUES ('302', '风景名胜区管委会', '', '', '266', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '61', '1', '3');
INSERT INTO `categories` VALUES ('303', '领导信息', '', '', '268', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('304', '指南年报', '', '', '268', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('305', '工作动态', '', '', '268', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('306', '政策法规', '', '', '268', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('307', '领导信息', '', '', '269', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('308', '指南年报', '', '', '269', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('309', '工作动态', '', '', '269', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('310', '政策法规', '', '', '269', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('311', '领导信息', '', '', '270', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('312', '指南年报', '', '', '270', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('313', '工作动态', '', '', '270', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('314', '政策法规', '', '', '270', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('315', '领导信息', '', '', '271', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('316', '指南年报', '', '', '271', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('317', '工作动态', '', '', '271', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('318', '政策法规', '', '', '271', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('319', '领导信息', '', '', '272', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('320', '指南年报', '', '', '272', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('321', '工作动态', '', '', '272', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('322', '政策法规', '', '', '272', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('323', '领导信息', '', '', '273', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('324', '指南年报', '', '', '273', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('325', '工作动态', '', '', '273', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('326', '政策法规', '', '', '273', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('327', '领导信息', '', '', '274', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('328', '指南年报', '', '', '274', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('329', '工作动态', '', '', '274', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('330', '政策法规', '', '', '274', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('331', '领导信息', '', '', '275', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('332', '指南年报', '', '', '275', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('333', '工作动态', '', '', '275', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('334', '政策法规', '', '', '275', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('335', '领导信息', '', '', '276', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('336', '指南年报', '', '', '276', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('337', '工作动态', '', '', '276', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('338', '政策法规', '', '', '276', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('339', '领导信息', '', '', '277', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('340', '指南年报', '', '', '277', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('341', '工作动态', '', '', '277', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('342', '政策法规', '', '', '277', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('343', '领导信息', '', '', '278', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('344', '指南年报', '', '', '278', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('345', '工作动态', '', '', '278', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('346', '政策法规', '', '', '278', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('347', '领导信息', '', '', '279', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('348', '指南年报', '', '', '279', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('349', '工作动态', '', '', '279', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('350', '政策法规', '', '', '279', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('351', '领导信息', '', '', '280', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('352', '指南年报', '', '', '280', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('353', '工作动态', '', '', '280', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('354', '政策法规', '', '', '280', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('355', '领导信息', '', '', '281', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('356', '指南年报', '', '', '281', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('357', '工作动态', '', '', '281', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('358', '政策法规', '', '', '281', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('359', '领导信息', '', '', '282', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('360', '指南年报', '', '', '282', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('361', '工作动态', '', '', '282', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('362', '政策法规', '', '', '282', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('363', '领导信息', '', '', '283', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('364', '指南年报', '', '', '283', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('365', '工作动态', '', '', '283', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('366', '政策法规', '', '', '283', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('367', '领导信息', '', '', '284', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('368', '指南年报', '', '', '284', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('369', '工作动态', '', '', '284', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('370', '政策法规', '', '', '284', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('371', '领导信息', '', '', '285', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('372', '指南年报', '', '', '285', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('373', '工作动态', '', '', '285', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('374', '政策法规', '', '', '285', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('375', '领导信息', '', '', '286', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('376', '指南年报', '', '', '286', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('377', '工作动态', '', '', '286', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('378', '政策法规', '', '', '286', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('379', '领导信息', '', '', '287', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('380', '指南年报', '', '', '287', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('381', '工作动态', '', '', '287', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('382', '政策法规', '', '', '287', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('383', '领导信息', '', '', '288', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('384', '指南年报', '', '', '288', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('385', '工作动态', '', '', '288', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('386', '政策法规', '', '', '288', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('387', '领导信息', '', '', '289', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('388', '指南年报', '', '', '289', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('389', '工作动态', '', '', '289', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('390', '政策法规', '', '', '289', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('391', '领导信息', '', '', '290', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('392', '指南年报', '', '', '290', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('393', '工作动态', '', '', '290', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('394', '政策法规', '', '', '290', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('395', '领导信息', '', '', '291', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('396', '指南年报', '', '', '291', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('397', '工作动态', '', '', '291', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('398', '政策法规', '', '', '291', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('399', '领导信息', '', '', '292', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('400', '指南年报', '', '', '292', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('401', '工作动态', '', '', '292', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('402', '政策法规', '', '', '292', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('403', '领导信息', '', '', '293', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('404', '指南年报', '', '', '293', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('405', '工作动态', '', '', '293', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('406', '政策法规', '', '', '293', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('407', '领导信息', '', '', '294', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('408', '指南年报', '', '', '294', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('409', '工作动态', '', '', '294', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('410', '政策法规', '', '', '294', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('411', '领导信息', '', '', '295', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('412', '指南年报', '', '', '295', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('413', '工作动态', '', '', '295', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('414', '政策法规', '', '', '295', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('415', '领导信息', '', '', '296', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('416', '指南年报', '', '', '296', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('417', '工作动态', '', '', '296', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('418', '政策法规', '', '', '296', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('419', '领导信息', '', '', '297', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('420', '指南年报', '', '', '297', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('421', '工作动态', '', '', '297', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('422', '政策法规', '', '', '297', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('423', '领导信息', '', '', '298', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('424', '指南年报', '', '', '298', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('425', '工作动态', '', '', '298', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('426', '政策法规', '', '', '298', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('427', '领导信息', '', '', '299', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('428', '指南年报', '', '', '299', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('429', '工作动态', '', '', '299', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('430', '政策法规', '', '', '299', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('431', '领导信息', '', '', '300', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('432', '指南年报', '', '', '300', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('433', '工作动态', '', '', '300', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('434', '政策法规', '', '', '300', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('435', '领导信息', '', '', '301', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('436', '指南年报', '', '', '301', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('437', '工作动态', '', '', '301', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('438', '政策法规', '', '', '301', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('439', '领导信息', '', '', '302', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('440', '指南年报', '', '', '302', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('441', '工作动态', '', '', '302', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('442', '政策法规', '', '', '302', '1', '2017-09-11 07:51:00', '2017-09-11 07:51:00', '1', null, '4');
INSERT INTO `categories` VALUES ('443', '兴华街道', '', '', '267', '1', '2017-09-11 08:17:55', '2017-09-11 08:17:55', '99', '1', '3');
INSERT INTO `categories` VALUES ('444', '正阳街道', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '98', '1', '3');
INSERT INTO `categories` VALUES ('445', '繁荣街道', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '97', '1', '3');
INSERT INTO `categories` VALUES ('446', '向阳街道', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '96', '1', '3');
INSERT INTO `categories` VALUES ('447', '铁东街道', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '95', '1', '3');
INSERT INTO `categories` VALUES ('448', '河西街道', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '94', '1', '3');
INSERT INTO `categories` VALUES ('449', '高台子街道', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '93', '1', '3');
INSERT INTO `categories` VALUES ('450', '成吉思汗镇', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '92', '1', '3');
INSERT INTO `categories` VALUES ('451', '蘑菇气镇', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '91', '1', '3');
INSERT INTO `categories` VALUES ('452', '中和镇', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '90', '1', '3');
INSERT INTO `categories` VALUES ('453', '卧牛河镇', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '89', '1', '3');
INSERT INTO `categories` VALUES ('454', '大河湾镇', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '88', '1', '3');
INSERT INTO `categories` VALUES ('455', '哈多河镇', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '87', '1', '3');
INSERT INTO `categories` VALUES ('456', '柴河镇', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '86', '1', '3');
INSERT INTO `categories` VALUES ('457', '浩饶山镇', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '85', '1', '3');
INSERT INTO `categories` VALUES ('458', '洼堤乡', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '84', '1', '3');
INSERT INTO `categories` VALUES ('459', '南木鄂伦春民族乡', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '83', '1', '3');
INSERT INTO `categories` VALUES ('460', '达斡尔民族乡', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '82', '1', '3');
INSERT INTO `categories` VALUES ('461', '萨马街鄂温克民族乡', '', '', '267', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '81', '1', '3');
INSERT INTO `categories` VALUES ('462', '领导信息', '', '', '443', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('463', '指南年报', '', '', '443', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('464', '工作动态', '', '', '443', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('465', '领导信息', '', '', '444', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('466', '指南年报', '', '', '444', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('467', '工作动态', '', '', '444', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('468', '领导信息', '', '', '445', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('469', '指南年报', '', '', '445', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('470', '工作动态', '', '', '445', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('471', '领导信息', '', '', '446', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('472', '指南年报', '', '', '446', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('473', '工作动态', '', '', '446', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('474', '领导信息', '', '', '447', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('475', '指南年报', '', '', '447', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('476', '工作动态', '', '', '447', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('477', '领导信息', '', '', '448', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('478', '指南年报', '', '', '448', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('479', '工作动态', '', '', '448', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('480', '领导信息', '', '', '449', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('481', '指南年报', '', '', '449', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('482', '工作动态', '', '', '449', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('483', '领导信息', '', '', '450', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('484', '指南年报', '', '', '450', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('485', '工作动态', '', '', '450', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('486', '领导信息', '', '', '451', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('487', '指南年报', '', '', '451', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('488', '工作动态', '', '', '451', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('489', '领导信息', '', '', '452', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('490', '指南年报', '', '', '452', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('491', '工作动态', '', '', '452', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('492', '领导信息', '', '', '453', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('493', '指南年报', '', '', '453', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('494', '工作动态', '', '', '453', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('495', '领导信息', '', '', '454', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('496', '指南年报', '', '', '454', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('497', '工作动态', '', '', '454', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('498', '领导信息', '', '', '455', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('499', '指南年报', '', '', '455', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('500', '工作动态', '', '', '455', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('501', '领导信息', '', '', '456', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('502', '指南年报', '', '', '456', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('503', '工作动态', '', '', '456', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('504', '领导信息', '', '', '457', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('505', '指南年报', '', '', '457', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('506', '工作动态', '', '', '457', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('507', '领导信息', '', '', '458', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('508', '指南年报', '', '', '458', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('509', '工作动态', '', '', '458', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('510', '领导信息', '', '', '459', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('511', '指南年报', '', '', '459', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('512', '工作动态', '', '', '459', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('513', '领导信息', '', '', '460', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('514', '指南年报', '', '', '460', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('515', '工作动态', '', '', '460', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('516', '领导信息', '', '', '461', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('517', '指南年报', '', '', '461', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('518', '工作动态', '', '', '461', '1', '2017-09-11 08:17:00', '2017-09-11 08:17:00', '1', null, '4');
INSERT INTO `categories` VALUES ('519', '政府公报', '', '', '36', '1', '2017-09-11 08:32:51', '2017-09-11 08:32:51', '1', '1', '4');
INSERT INTO `categories` VALUES ('520', '黑木耳专栏', '', '', '79', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('521', '红十字会', '', '', '79', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('522', '教育培训', '', '', '263', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('523', '医疗卫生', '', '', '263', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('524', '劳动就业', '', '', '263', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('525', '社会保障', '', '', '263', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('526', '招商引资', '', '', '263', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('527', '休闲旅游', '', '', '263', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('528', '户籍和身份证办理', '', '', '264', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('529', '生育服务', '', '', '264', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('530', '保障性住房申请', '', '', '264', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('531', '商事登记', '', '', '264', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('532', '婚姻生育', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('533', '户籍护照', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('534', '文化教育', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('535', '人事人才', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('536', '医疗卫生', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('537', '社会保障', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('538', '劳动就业', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('539', '消费维权', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('540', '公安司法', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('541', '交通出行', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('542', '土地房产', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('543', '社会救助', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('544', '殡葬管理', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('545', '公共事业', '', '', '77', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('546', '开办设立', '', '', '78', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('547', '企业变更', '', '', '78', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('548', '企业注销', '', '', '78', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('549', '年检年审', '', '', '78', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('550', '企业纳税', '', '', '78', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('551', '质量监督', '', '', '78', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('552', '安全生产', '', '', '78', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('553', '科技服务', '', '', '78', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('554', '知识产权', '', '', '78', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('555', '对外贸易', '', '', '78', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('556', '质量监督', '', '', '78', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('557', '发改局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('558', '经信局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('561', '财政局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('562', '公安局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('565', '民政局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('567', '人社局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('569', '安监局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('570', '住建局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('571', '规划局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('572', '人防办', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('573', '交通局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('574', '农牧业局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('577', '林业局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('578', '水务局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('580', '教科局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('581', '文体新广局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('582', '卫计局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('584', '食药监局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('585', '市场监督管理局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('586', '国土局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('587', '环保局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('588', '城管执法局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('592', '农机局', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('594', '机场办', '', '', '265', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('600', '在线访谈', '', '', '205', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('601', '扎兰旅游', '', '', '64', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('602', '扎兰名片', '', '', '64', '1', '2017-09-12 08:32:00', '2017-09-12 08:32:00', '1', null, '3');
INSERT INTO `categories` VALUES ('603', '新闻发布会', '', '', '36', '1', '2017-09-13 08:03:55', '2017-09-13 08:03:55', '1', null, '3');
INSERT INTO `categories` VALUES ('604', '自治区文件', '', '', '0', '1', '2017-09-13 08:45:20', '2017-09-13 08:45:20', '1', null, '3');
INSERT INTO `categories` VALUES ('605', '市政府文件', '', '', '0', '1', '2017-09-13 08:45:45', '2017-09-13 08:45:45', '1', null, '3');
INSERT INTO `categories` VALUES ('606', '人事任免', '', '', '36', '1', '2017-09-13 08:46:06', '2017-09-13 08:46:06', '1', null, '3');
INSERT INTO `categories` VALUES ('607', '新闻资讯', '', '', '521', '1', '2017-09-21 08:32:00', '2017-09-21 08:32:00', '1', null, '4');
INSERT INTO `categories` VALUES ('608', '领导信息', '', '', '521', '1', '2017-09-21 08:32:00', '2017-09-21 08:32:00', '1', null, '4');
INSERT INTO `categories` VALUES ('609', '机构职能', '', '', '521', '1', '2017-09-21 08:32:00', '2017-09-21 08:32:00', '1', null, '4');
INSERT INTO `categories` VALUES ('610', '通知公告', '', '', '521', '1', '2017-09-21 08:32:00', '2017-09-21 08:32:00', '1', null, '4');
INSERT INTO `categories` VALUES ('611', '社会捐赠', '', '', '521', '1', '2017-09-21 08:32:00', '2017-09-21 08:32:00', '1', null, '4');
INSERT INTO `categories` VALUES ('612', '救灾救援救护', '', '', '521', '1', '2017-09-21 08:32:00', '2017-09-21 08:32:00', '1', null, '4');
INSERT INTO `categories` VALUES ('613', '志愿者风采', '', '', '521', '1', '2017-09-21 08:32:00', '2017-09-21 08:32:00', '1', null, '4');
INSERT INTO `categories` VALUES ('614', '相关知识', '', '', '521', '1', '2017-09-21 08:32:00', '2017-09-21 08:32:00', '1', null, '4');
INSERT INTO `categories` VALUES ('616', '重点领域', '', '', '36', '1', '2017-09-30 01:43:33', '2017-09-30 01:43:33', '1', null, '2');
INSERT INTO `categories` VALUES ('617', '市交通运输局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('618', '市住建局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('619', '市扶贫办', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('620', '市教育局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('621', '市卫生局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('622', '市商务粮食局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('623', '市林业局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('624', '市水务局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('625', '市农牧业局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('626', '市民政局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('627', '市财政局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('628', '市人社局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('629', '市食品药品监督管理局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('630', '市安监局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('631', '市科技局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('632', '市农机局', '', '', '616', '1', '2017-09-30 01:43:00', '2017-09-30 01:43:00', '1', null, '3');
INSERT INTO `categories` VALUES ('633', '专题聚焦', '', '', '0', '1', '2017-11-07 23:03:00', '2017-11-07 23:03:00', '1', null, '2');
INSERT INTO `categories` VALUES ('634', '思想道德建设', '', '', '633', '1', '2017-11-07 23:07:00', '2017-11-07 23:07:00', '1', null, '3');
INSERT INTO `categories` VALUES ('635', '创建文明城市', '', '', '633', '1', '2017-11-07 23:08:17', '2017-11-07 23:08:17', '1', null, '3');
INSERT INTO `categories` VALUES ('636', '社会主义核心价值观', '', '', '633', '1', '2017-11-07 23:18:16', '2017-11-07 23:18:16', '1', null, '3');
INSERT INTO `categories` VALUES ('637', '扎兰是我家', '', '', '633', '1', '2017-11-07 23:21:59', '2017-11-07 23:21:59', '1', null, '3');
INSERT INTO `categories` VALUES ('638', '两学一做', '', '', '633', '1', '2017-11-08 06:47:39', '2017-11-08 06:47:39', '1', null, '3');
INSERT INTO `categories` VALUES ('639', '脱贫攻坚专栏', '', '', '633', '1', '2017-11-08 06:53:14', '2017-11-08 06:53:14', '1', null, '3');
INSERT INTO `categories` VALUES ('640', '换届选举', '', '', '633', '1', '2017-11-08 06:57:05', '2017-11-08 06:57:05', '1', null, '3');
INSERT INTO `categories` VALUES ('641', '全面深化改革进行时', '', '', '633', '1', '2017-11-08 07:14:23', '2017-11-08 07:14:23', '1', null, '3');
INSERT INTO `categories` VALUES ('643', '工作动态', '', '', '87', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('644', '政策法规', '', '', '87', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('645', '学习园地', '', '', '87', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('646', '办事指南', '', '', '87', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('647', '新法速递', '', '', '88', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('648', '行政复议', '', '', '88', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('649', '执法监督', '', '', '88', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('650', '工作动态', '', '', '88', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('651', '学习园地', '', '', '88', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('652', '清单管理', '', '', '88', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('653', '金融要闻', '', '', '89', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('654', '政策法规', '', '', '89', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('655', '办事指南', '', '', '89', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('656', '金融服务', '', '', '89', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('657', '最新动态', '', '', '90', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('658', '发展规划', '', '', '90', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('659', '指导意见', '', '', '90', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('660', '扶持政策', '', '', '90', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('661', '考察调研', '', '', '90', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('662', '专题会议', '', '', '90', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('663', '电商扶贫', '', '', '90', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('664', '资金公示', '', '', '90', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('665', '最新工作动态', '', '', '91', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('666', '创业扶持政策', '', '', '91', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('667', '创业典型', '', '', '91', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('668', '创业型城市建设', '', '', '91', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('669', '创业经验交流', '', '', '91', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('670', '创业项目推介', '', '', '91', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('671', '就业岗位信息', '', '', '91', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('672', '求职人员信息', '', '', '91', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('673', '最新动态', '', '', '520', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('674', '发展规划', '', '', '520', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('675', '指导意见', '', '', '520', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('676', '扶持政策', '', '', '520', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('677', '栽培技术', '', '', '520', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('678', '领导讲话', '', '', '520', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('679', '经验交流', '', '', '520', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('680', '视频专题', '', '', '520', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('681', '木耳功效', '', '', '520', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('682', '企业名片', '', '', '520', '1', '2017-11-10 01:35:00', '2017-11-10 01:35:00', '1', null, '3');
INSERT INTO `categories` VALUES ('684', '保障性住房', '', '', '41', '1', '2017-11-28 14:36:00', '2017-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('685', '安全生产', '', '', '41', '1', '2017-11-28 14:36:00', '2017-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('686', '食品药品安全', '', '', '41', '1', '2017-11-28 14:36:00', '2017-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('687', '教育卫生', '', '', '41', '1', '2017-11-28 14:36:00', '2017-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('688', '扶贫脱贫', '', '', '41', '1', '2017-11-28 14:36:00', '2017-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('689', '农牧业供给侧改革', '', '', '41', '1', '2017-11-28 14:36:00', '2017-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('690', '社会救助', '', '', '41', '1', '2017-11-28 14:36:00', '2017-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('691', '重大建设项目', '', '', '41', '1', '2017-11-28 14:36:00', '2017-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('692', '减税降费', '', '', '41', '1', '2017-11-28 14:36:00', '2017-11-29 08:01:30', '1', null, '3');
INSERT INTO `categories` VALUES ('693', '国有企业监管', '', '', '41', '1', '2017-11-28 14:36:00', '2017-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('694', '就业创业', '', '', '41', '1', '2017-11-28 14:36:00', '2017-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('695', '市场及产品质量监管', '', '', '41', '1', '2017-11-28 14:36:00', '2017-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('696', '新时代新气象新作为', '', '', '633', '1', '2017-11-28 14:36:00', '2017-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('697', '卫计局', '', '', '266', '1', '2017-11-28 14:36:00', '2017-11-28 14:36:00', '78', null, '3');
INSERT INTO `categories` VALUES ('698', '政府办公室', '', '', '266', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '99', null, '3');
INSERT INTO `categories` VALUES ('699', '领导信息', '', '', '698', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('700', '指南年报', '', '', '698', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('701', '工作动态', '', '', '698', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('702', '政策法规', '', '', '698', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('703', '行政许可和行政处罚\r', '', '', '36', '1', '2017-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '2');
INSERT INTO `categories` VALUES ('704', '行政许可', '', '', '703', '1', '2017-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('705', '行政处罚', '', '', '703', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '3');
INSERT INTO `categories` VALUES ('706', '教科局', '', '', '266', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '80', null, '3');
INSERT INTO `categories` VALUES ('707', '领导信息', '', '', '706', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('708', '指南年报', '', '', '706', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('709', '工作动态', '', '', '706', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('710', '政策法规', '', '', '706', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('711', '领导信息', '', '', '697', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('712', '指南年报', '', '', '697', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('713', '工作动态', '', '', '697', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('714', '政策法规', '', '', '697', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('715', '文体新广局', '', '', '266', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '79', '', '3');
INSERT INTO `categories` VALUES ('716', '领导信息', '', '', '715', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', '', '4');
INSERT INTO `categories` VALUES ('717', '指南年报', '', '', '715', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', '', '4');
INSERT INTO `categories` VALUES ('718', '工作动态', '', '', '715', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', '', '4');
INSERT INTO `categories` VALUES ('719', '政策法规', '', '', '715', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', '', '4');
INSERT INTO `categories` VALUES ('720', '林业局', '', '', '266', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '82', null, '3');
INSERT INTO `categories` VALUES ('721', '领导信息', '', '', '720', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('722', '指南年报', '', '', '720', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('723', '工作动态', '', '', '720', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('724', '政策法规', '', '', '720', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('725', '大事记', '', '', '36', '1', '2015-11-28 14:36:00', '2015-11-28 14:36:00', '1', null, '4');
INSERT INTO `categories` VALUES ('726', '头条', '', '', '205', '1', '2018-01-23 07:53:16', '2018-01-23 07:53:16', '0', null, null);
|
-------------------------------------------------------------------------------
-- store info
-------------------------------------------------------------------------------
CREATE TABLE STORE_INFO(
ID BIGINT NOT NULL,
NAME VARCHAR(200),
MODEL VARCHAR(50),
PATH VARCHAR(200),
TYPE VARCHAR(50),
SIZE BIGINT,
CREATE_TIME TIMESTAMP,
SCOPE_ID VARCHAR(50),
CONSTRAINT PK_STORE_INFO PRIMARY KEY(ID)
);
|
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 27, 2018 at 02:14 PM
-- Server version: 5.7.14
-- PHP Version: 5.6.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `feedback`
--
-- --------------------------------------------------------
--
-- Table structure for table `analysis_master`
--
CREATE TABLE `analysis_master` (
`analysis_master_id` int(11) NOT NULL COMMENT 'row_id staff analysis',
`entry_id` int(11) NOT NULL COMMENT 'entry_id from entry_record',
`class_id` int(11) NOT NULL COMMENT 'class id from class master',
`section_id` int(11) NOT NULL COMMENT 'section bifergate',
`criteria_id` int(11) NOT NULL COMMENT 'criteria_id from criteria_master',
`criteria_points` int(11) NOT NULL DEFAULT '0' COMMENT 'points got 0 - 5',
`emp_code` int(11) NOT NULL COMMENT 'emp_code from employee_master',
`created_at` varchar(255) DEFAULT NULL,
`updated_at` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Staff points table';
-- --------------------------------------------------------
--
-- Table structure for table `class_master`
--
CREATE TABLE `class_master` (
`class_id` int(11) NOT NULL COMMENT 'class_id by college',
`class_name` varchar(255) DEFAULT NULL COMMENT 'class_name',
`dept_id` int(11) DEFAULT NULL COMMENT 'dept_id from department_master',
`created_at` varchar(255) DEFAULT NULL,
`updated_at` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Class Master Table';
--
-- Dumping data for table `class_master`
--
INSERT INTO `class_master` (`class_id`, `class_name`, `dept_id`, `created_at`, `updated_at`) VALUES
(2, 'BCA', 1, '1528282824', '1528283999'),
(3, 'MCA', 1, '1528367575', '1528367575'),
(4, 'MsciT', 1, '1528367588', '1528367588'),
(5, 'BsciT', 1, '1528367596', '1528367596');
-- --------------------------------------------------------
--
-- Table structure for table `criteria_master`
--
CREATE TABLE `criteria_master` (
`criteria_id` int(11) NOT NULL,
`section_id` int(11) NOT NULL COMMENT 'section_id from section_master',
`criteria_name` varchar(255) DEFAULT NULL,
`type_data` int(1) NOT NULL DEFAULT '0' COMMENT '0=simple,1=radio',
`created_at` varchar(255) DEFAULT NULL,
`updated_at` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Criteria Master Table';
--
-- Dumping data for table `criteria_master`
--
INSERT INTO `criteria_master` (`criteria_id`, `section_id`, `criteria_name`, `type_data`, `created_at`, `updated_at`) VALUES
(1, 1, 'Subject Knowlege', 0, '1528878417', '1530078002'),
(2, 1, 'Prepardness', 0, '1528878432', '1528878432'),
(3, 1, 'Regularity', 0, '1528878503', '1528878503'),
(4, 1, 'Fluency in English', 0, '1528878526', '1528878526'),
(5, 1, 'Starts class in time', 0, '1528878541', '1528878541'),
(6, 1, 'Relationship with Students', 0, '1528878562', '1528878562'),
(7, 1, 'Class Disicpline', 0, '1528878575', '1528878644'),
(8, 1, 'Periodic Class Test', 0, '1528878599', '1528878599'),
(9, 2, 'Class Rooms', 0, '1528878687', '1528878687'),
(10, 2, 'Laboratories', 0, '1528878715', '1528878722'),
(11, 2, 'Cleanliness Of College Campus', 0, '1528878751', '1528878816'),
(12, 2, 'Urinals', 0, '1528878763', '1528878763'),
(13, 2, 'Parking Facility', 0, '1528878784', '1528878784'),
(14, 3, 'Reception', 0, '1528878838', '1528878838'),
(15, 3, 'First Aid', 0, '1528878851', '1528878851'),
(16, 3, 'Do You Read Notice Board?', 1, '1528878875', '1529739198'),
(17, 3, 'Frequency Of Office Visit', 1, '1528878913', '1529739257'),
(18, 3, 'Overall', 0, '1528878954', '1528878954'),
(19, 3, 'Bonafide', 0, '1528878967', '1528878967'),
(20, 3, 'Admission', 0, '1528878976', '1528878976'),
(21, 3, 'ID Card', 0, '1528878984', '1528878984'),
(22, 3, 'Enrolment', 0, '1528879000', '1528879000'),
(23, 3, 'Uni Exam Forms', 0, '1528879015', '1528879027'),
(24, 4, 'Cooperation Of Library Staff ?', 0, '1528879081', '1528879081'),
(25, 4, 'BOOKS AND REFERENCES', 0, '1528879142', '1528879142'),
(26, 4, 'CDS', 0, '1528879151', '1528879151'),
(27, 4, 'MAGAZINES', 0, '1528879165', '1528879165'),
(28, 4, 'QUESTION PAPER', 0, '1528879175', '1528879175'),
(29, 5, 'Quality Of Food Available', 0, '1528879216', '1528879216'),
(30, 5, 'Cleanliness Of Canteen', 0, '1528879246', '1528879246'),
(31, 5, 'Cleanliness Of Surrounding Area', 0, '1528879269', '1528879269'),
(32, 5, 'Variety Of Food Available', 0, '1528879291', '1528879291'),
(33, 5, 'Pricing Of Food', 0, '1528879313', '1528879313'),
(34, 6, 'Are You a Member Of Sports club ?', 1, '1528879352', '1529739138'),
(35, 6, 'Which Sports Facility Need Importance ?', 1, '1528879403', '1529740828'),
(36, 6, 'Do college tournaments Affects Studies?', 0, '1528879433', '1528879449');
-- --------------------------------------------------------
--
-- Table structure for table `department_master`
--
CREATE TABLE `department_master` (
`dept_id` int(11) NOT NULL COMMENT 'dept_id',
`dept_name` varchar(255) DEFAULT NULL COMMENT 'dept name',
`created_at` varchar(255) DEFAULT NULL,
`updated_at` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Department Master Table';
--
-- Dumping data for table `department_master`
--
INSERT INTO `department_master` (`dept_id`, `dept_name`, `created_at`, `updated_at`) VALUES
(0, 'No Department', NULL, NULL),
(1, 'Computer', '1528099679', '1528099679');
-- --------------------------------------------------------
--
-- Table structure for table `employee_allocation`
--
CREATE TABLE `employee_allocation` (
`employee_allocation_id` int(11) NOT NULL COMMENT 'row id emloyee_allocation master',
`class_id` int(11) NOT NULL COMMENT 'class id from class master',
`emp_code` int(11) NOT NULL,
`created_at` varchar(255) DEFAULT NULL,
`updated_at` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='emloyee_allocation master';
--
-- Dumping data for table `employee_allocation`
--
INSERT INTO `employee_allocation` (`employee_allocation_id`, `class_id`, `emp_code`, `created_at`, `updated_at`) VALUES
(15, 5, 23, NULL, NULL),
(17, 3, 23, NULL, NULL),
(18, 2, 23, NULL, NULL),
(19, 2, 5, NULL, NULL),
(20, 2, 21, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `employee_master`
--
CREATE TABLE `employee_master` (
`emp_code` int(11) NOT NULL COMMENT 'employee unique id from college',
`emp_name` varchar(255) DEFAULT NULL,
`emp_phone` varchar(15) DEFAULT NULL COMMENT 'employee phone',
`emp_email` varchar(255) DEFAULT NULL COMMENT 'employee table email',
`dept_id` int(11) DEFAULT NULL COMMENT 'dept id from department_master',
`created_at` varchar(255) DEFAULT NULL,
`updated_at` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Emplyoees Master table';
--
-- Dumping data for table `employee_master`
--
INSERT INTO `employee_master` (`emp_code`, `emp_name`, `emp_phone`, `emp_email`, `dept_id`, `created_at`, `updated_at`) VALUES
(5, 'meet', '9898989898', 'as@gmail.com', 0, '1528104035', '1528367615'),
(21, 'rushi', '6565656562', 'rushi@gmail.com', 0, '1528367673', '1528367673'),
(23, 'rushik', '6565656565', 'rushik2@gmail.com', 0, '1528032553', '1528032553');
-- --------------------------------------------------------
--
-- Table structure for table `entry_record`
--
CREATE TABLE `entry_record` (
`entry_id` int(11) NOT NULL,
`class_id` int(11) NOT NULL,
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='counts total entry feedback';
-- --------------------------------------------------------
--
-- Table structure for table `option_master`
--
CREATE TABLE `option_master` (
`option_id` int(11) NOT NULL,
`criteria_id` int(11) NOT NULL,
`option_text` varchar(255) NOT NULL,
`option_value` varchar(255) NOT NULL,
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COMMENT='dynamic option for criteria';
--
-- Dumping data for table `option_master`
--
INSERT INTO `option_master` (`option_id`, `criteria_id`, `option_text`, `option_value`, `created_at`, `updated_at`) VALUES
(45, 34, 'Yes', 'Yes', 1529739137, 1529739137),
(46, 34, 'No', 'No', 1529739138, 1529739138),
(47, 16, 'Daily', 'Daily', 1529739198, 1529739198),
(48, 16, 'Twice a week', 'Twice a week', 1529739198, 1529739198),
(49, 16, 'Thrice a week', 'Thrice a week', 1529739198, 1529739198),
(50, 17, 'Daily', 'Daily', 1529739256, 1529739256),
(51, 17, 'Once a Week', 'Once a Week', 1529739257, 1529739257),
(52, 17, 'With Reference to Notice', 'With Reference to Notice', 1529739257, 1529739257),
(59, 35, 'volley Ball', 'volley Ball', 1529740828, 1529740828),
(60, 35, 'Basket Ball', 'Basket Ball', 1529740828, 1529740828),
(61, 35, 'Kabbadi', 'Kabbadi', 1529740828, 1529740828);
-- --------------------------------------------------------
--
-- Table structure for table `remarks_master`
--
CREATE TABLE `remarks_master` (
`remark_id` int(11) NOT NULL COMMENT 'row id for remarks_master',
`entry_id` int(11) NOT NULL COMMENT 'entry_id from entry_record',
`section_id` int(11) NOT NULL COMMENT 'section_id from section_master',
`remarks` text NOT NULL COMMENT 'remarks',
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='remarks for all section';
-- --------------------------------------------------------
--
-- Table structure for table `section_master`
--
CREATE TABLE `section_master` (
`section_id` int(11) NOT NULL COMMENT 'seciotn_mster id',
`section_name` varchar(255) NOT NULL COMMENT 'section_name unique',
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='section_master';
--
-- Dumping data for table `section_master`
--
INSERT INTO `section_master` (`section_id`, `section_name`, `created_at`, `updated_at`) VALUES
(1, 'Employee Section', 1528878251, 1528878251),
(2, 'College Campus', 1528878260, 1528878260),
(3, 'Administration Section', 1528878273, 1528878273),
(4, 'Library Section', 1528878287, 1528878287),
(5, 'Canteen And Food', 1528878298, 1528878298),
(6, 'Sports Section', 1528878307, 1528878307);
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`user_id` int(11) NOT NULL COMMENT 'row id for user',
`user_email` varchar(255) NOT NULL COMMENT 'user email',
`user_type` int(1) NOT NULL COMMENT 'user type 1=admin',
`user_password` varchar(255) DEFAULT NULL,
`is_active` int(11) DEFAULT '1',
`created_at` varchar(255) DEFAULT NULL,
`updated_at` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='User table ';
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`user_id`, `user_email`, `user_type`, `user_password`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'admin@feedback.com', 1, '96e79218965eb72c92a549dd5a330112', 1, NULL, NULL);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `analysis_master`
--
ALTER TABLE `analysis_master`
ADD PRIMARY KEY (`analysis_master_id`),
ADD KEY `entryid_link` (`entry_id`),
ADD KEY `section_master_analysis_section_id` (`section_id`),
ADD KEY `criteria_master_analysis_section_id` (`criteria_id`),
ADD KEY `related_index` (`class_id`,`section_id`,`criteria_id`,`emp_code`) USING BTREE,
ADD KEY `employee_analaysis_link` (`emp_code`);
--
-- Indexes for table `class_master`
--
ALTER TABLE `class_master`
ADD PRIMARY KEY (`class_id`),
ADD KEY `dept_id` (`dept_id`);
--
-- Indexes for table `criteria_master`
--
ALTER TABLE `criteria_master`
ADD PRIMARY KEY (`criteria_id`),
ADD KEY `section_id` (`section_id`);
--
-- Indexes for table `department_master`
--
ALTER TABLE `department_master`
ADD PRIMARY KEY (`dept_id`);
--
-- Indexes for table `employee_allocation`
--
ALTER TABLE `employee_allocation`
ADD PRIMARY KEY (`employee_allocation_id`),
ADD KEY `class_emplyoee_allocation` (`class_id`),
ADD KEY `employee_employee_allocation` (`emp_code`);
--
-- Indexes for table `employee_master`
--
ALTER TABLE `employee_master`
ADD PRIMARY KEY (`emp_code`),
ADD UNIQUE KEY `emp_email` (`emp_email`),
ADD KEY `deparmtent id link` (`dept_id`);
--
-- Indexes for table `entry_record`
--
ALTER TABLE `entry_record`
ADD PRIMARY KEY (`entry_id`),
ADD UNIQUE KEY `class_id` (`class_id`);
--
-- Indexes for table `option_master`
--
ALTER TABLE `option_master`
ADD PRIMARY KEY (`option_id`),
ADD KEY `criteria_option_link` (`criteria_id`);
--
-- Indexes for table `remarks_master`
--
ALTER TABLE `remarks_master`
ADD PRIMARY KEY (`remark_id`),
ADD KEY `entry_id` (`entry_id`),
ADD KEY `section_id` (`section_id`);
--
-- Indexes for table `section_master`
--
ALTER TABLE `section_master`
ADD PRIMARY KEY (`section_id`),
ADD UNIQUE KEY `sectioin_name` (`section_name`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`user_id`),
ADD UNIQUE KEY `user_email` (`user_email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `analysis_master`
--
ALTER TABLE `analysis_master`
MODIFY `analysis_master_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'row_id staff analysis';
--
-- AUTO_INCREMENT for table `criteria_master`
--
ALTER TABLE `criteria_master`
MODIFY `criteria_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;
--
-- AUTO_INCREMENT for table `employee_allocation`
--
ALTER TABLE `employee_allocation`
MODIFY `employee_allocation_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'row id emloyee_allocation master', AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `entry_record`
--
ALTER TABLE `entry_record`
MODIFY `entry_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `option_master`
--
ALTER TABLE `option_master`
MODIFY `option_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=62;
--
-- AUTO_INCREMENT for table `remarks_master`
--
ALTER TABLE `remarks_master`
MODIFY `remark_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'row id for remarks_master';
--
-- AUTO_INCREMENT for table `section_master`
--
ALTER TABLE `section_master`
MODIFY `section_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'seciotn_mster id', AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'row id for user', AUTO_INCREMENT=2;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `analysis_master`
--
ALTER TABLE `analysis_master`
ADD CONSTRAINT `class_id_analysis_class_id` FOREIGN KEY (`class_id`) REFERENCES `class_master` (`class_id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `criteria_master_analysis_section_id` FOREIGN KEY (`criteria_id`) REFERENCES `criteria_master` (`criteria_id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `employee_analaysis_link` FOREIGN KEY (`emp_code`) REFERENCES `employee_master` (`emp_code`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `entry_anlaysis_link` FOREIGN KEY (`entry_id`) REFERENCES `entry_record` (`entry_id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `section_master_analysis_section_id` FOREIGN KEY (`section_id`) REFERENCES `section_master` (`section_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `class_master`
--
ALTER TABLE `class_master`
ADD CONSTRAINT `department_class_link` FOREIGN KEY (`dept_id`) REFERENCES `department_master` (`dept_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `criteria_master`
--
ALTER TABLE `criteria_master`
ADD CONSTRAINT `section_criteria` FOREIGN KEY (`section_id`) REFERENCES `section_master` (`section_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `employee_allocation`
--
ALTER TABLE `employee_allocation`
ADD CONSTRAINT `class_allocation_link` FOREIGN KEY (`class_id`) REFERENCES `class_master` (`class_id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `employee_allocation_link` FOREIGN KEY (`emp_code`) REFERENCES `employee_master` (`emp_code`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `employee_master`
--
ALTER TABLE `employee_master`
ADD CONSTRAINT `department_employee_link` FOREIGN KEY (`dept_id`) REFERENCES `department_master` (`dept_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `entry_record`
--
ALTER TABLE `entry_record`
ADD CONSTRAINT `class_entry_record_link` FOREIGN KEY (`class_id`) REFERENCES `class_master` (`class_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `option_master`
--
ALTER TABLE `option_master`
ADD CONSTRAINT `option_criteria_link` FOREIGN KEY (`criteria_id`) REFERENCES `criteria_master` (`criteria_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `remarks_master`
--
ALTER TABLE `remarks_master`
ADD CONSTRAINT `entry record bind` FOREIGN KEY (`entry_id`) REFERENCES `entry_record` (`entry_id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `section_id_remark_section_id` FOREIGN KEY (`section_id`) REFERENCES `section_master` (`section_id`) ON DELETE CASCADE ON UPDATE CASCADE;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
select D.Name as Department, E.Name as Employee, E.Salary as Salary
from Department D, Employee E
where (select(count(distinct(salary))) from Employee
where DepartmentId = E.DepartmentId and Salary > E.Salary) < 3
and E.DepartmentId = D.Id
order by E.DepartmentId, E.Salary desc;
|
DROP TABLE IF EXISTS characters;
CREATE TABLE characters (
id SERIAL PRIMARY KEY,
name VARCHAR(255),
img VARCHAR(511),
level VARCHAR(255)
);
|
SELECT t1.name, count(*)
FROM
site as s,
so_user as u1,
question as q1,
answer as a1,
tag as t1,
tag_question as tq1
WHERE
q1.owner_user_id = u1.id
AND a1.question_id = q1.id
AND a1.owner_user_id = u1.id
AND s.site_id = q1.site_id
AND s.site_id = a1.site_id
AND s.site_id = u1.site_id
AND s.site_id = tq1.site_id
AND s.site_id = t1.site_id
AND q1.id = tq1.question_id
AND t1.id = tq1.tag_id
AND (s.site_name in ('askubuntu','english','math','pt','salesforce'))
AND (t1.name in ('array','c++','conditional-probability','dynamical-systems','factorial','fourier-transform','homology-cohomology','html5','linear-programming','scripts','server','sobolev-spaces','substitution','supremum-and-infimum'))
AND (q1.view_count >= 0)
AND (q1.view_count <= 100)
AND (u1.reputation >= 10)
AND (u1.reputation <= 100000)
GROUP BY t1.name
|
-- wherelimit.test
--
-- execsql {UPDATE t1 SET y=4 WHERE x=5 ORDER BY x LIMIT 2, 5}
UPDATE t1 SET y=4 WHERE x=5 ORDER BY x LIMIT 2, 5
|
-- file:join.sql ln:457 expect:true
CREATE TEMP TABLE t1 (a int, b int)
|
-- Copyright 2020 the Exposure Notification Server authors
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
BEGIN;
DROP INDEX export_import_filename_unique;
END;
|
CREATE DATABASE `jonah_johansen`;
USE `jonah_johansen`;
CREATE TABLE `stylists` (`StylistId` int NOT NULL AUTO_INCREMENT,`Name` varchar(255) NOT NULL,`StartDate` varchar(255) NOT NULL,`CustomerCount` int NOT NULL DEFAULT '0',`Notes` text,PRIMARY KEY (`StylistId`));
CREATE TABLE `clients` (`ClientId` int NOT NULL AUTO_INCREMENT,`Name` varchar(255) NOT NULL,`StylistId` int NOT NULL,`Notes` text,PRIMARY KEY (`ClientId`));
|
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 05, 2019 at 08:22 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `kampus`
--
-- --------------------------------------------------------
--
-- Table structure for table `mahasiswa`
--
CREATE TABLE `mahasiswa` (
`npm` varchar(30) NOT NULL,
`nama` varchar(50) NOT NULL,
`jenjang` varchar(5) NOT NULL,
`jurusan` varchar(30) NOT NULL,
`kelas` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `mahasiswa`
--
INSERT INTO `mahasiswa` (`npm`, `nama`, `jenjang`, `jurusan`, `kelas`) VALUES
('43A87006170280', 'NAUVAL PURNOMO ', 'S1', 'TEKNIK INFORMATIKA', 'S1/TI/5B/P'),
('43A87006170297', 'Reynaldi', 'S1', 'S1', 'S1/SI5C/P'),
('43A87006170299', 'Rudi Catur Setiawan', 'S1', 'Teknik Informatika', 'S1/TI1A/P'),
('43A87006170300', 'Aldi', 'S1', 'SISTEM INFORMASI', 'S1/SI/5A/P'),
('43A87006170390', 'Maarif', 'S1', 'Teknik Informatika', 'S1/TI5A/P'),
('43A87006170450', 'Indika Putra', 'S1', 'SIstem Informasi', 'S1/SI6C/M');
-- --------------------------------------------------------
--
-- Table structure for table `matakuliah`
--
CREATE TABLE `matakuliah` (
`kd_matakuliah` varchar(10) NOT NULL,
`nama_matakuliah` varchar(35) NOT NULL,
`sks` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `matakuliah`
--
INSERT INTO `matakuliah` (`kd_matakuliah`, `nama_matakuliah`, `sks`) VALUES
('KDMK001', 'Pemrograman Web 1', '3 sks'),
('KDMK002', 'Aplikasi Basis Data', '4 sks'),
('KDMK003', 'Struktur Data', '3 sks');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `mahasiswa`
--
ALTER TABLE `mahasiswa`
ADD PRIMARY KEY (`npm`);
--
-- Indexes for table `matakuliah`
--
ALTER TABLE `matakuliah`
ADD PRIMARY KEY (`kd_matakuliah`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.