NET Fox SQL Common script automatically add sub-game Information Chess Platform Erection Tutorial

Source: Internet
Author: User

I haven't written it for a long time. Add a child game automatically with SQL script
after each good environment, add the child game is a repetitive labor, very troublesome, how can let him automatically generated it.
Here we will use SQL script to solve.


write the following code into Notepad and save it as a "game id.sql".
Use Qpplatformdb
GO
TRUNCATE TABLE Gamegameitem
INSERT INTO Gamegameitem (GameID, Gamename, Supportype, Databaseaddr, DataBaseName, ServerVersion, ClientVersion, Serverdllname, Clientexename)
values (3, ' Texas Holdem ', 0, ' 127.0.0.1 ', ' qptreasuredb ', 101187587, 101187587, ' DZShowHandServer.dll ', ' DZShowHand.exe ')
TRUNCATE TABLE Gamekinditem
INSERT INTO Gamekinditem (Kindid, GameID, TypeID, SortID, Kindname, ProcessName, Gameruleurl, DownloadURL, nullity)
VALUES (3, 3, 1, 0, ' Tak Chau poker ', ' DZShowHand.exe ', ', ', ' 0 ')



because we are writing a two-table, so the above is also Gamegameitem, gamekinditem two tables.
the above insert into Gamegameitem (GameID, and after values (3), is corresponding, and so on. and edit the corresponding entries.
Copy the modified script into the SQL executor. such as,
Log in and click, create a new query-copy the SQL script into the inside-click to execute, the following will be prompted, 1 lines to receive the impact even if successful.


of course, if you don't want to be so tedious, you can do it with your feet. Write the following code into Notepad and save it as a "game Id.bat".
@ECHO off
osql-e-n-i "game list. sql"
Pause
this way we can add the game later without the cumbersome to go to the database settings.

Note: This foot will let the previously added information be lost, everyone note (more Nets Fox Platform Erection Tutorial See http://www.yasewl.com).

This article is from the "Chess Card source Building Tutorial" blog, please be sure to keep this source http://13152879.blog.51cto.com/13142879/1950362

NET Fox SQL Common script automatically add sub-game Information Chess Platform Erection Tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.