Provides various official and user-released code examples. For code reference, you are welcome to learn thinkphp3.2 and use PHPExcel to export the structure of all tables in the database, including annotations.
First look at the figure
I. The controller code is as follows:
Public function out (){$ SQL = "show tables"; // read all tables in the database$ Result
to the ticket status, whether to reserve a non-flow fare, whether the non-change fare has been sold, not reserved, the ticket to be previewed is a long-distance ticket, half-pass change, the ticket has been refunded, the reserved ticket is free of charge, and the discount ticket 1-3 has been changed to the discount ticket window.
You can separate and combine the ticket window, refund window, and refund window by setting permissions and modes.Ports are separated.
Overall Function
UserID or roleid,privilegeaccess as "button", Privilegeaccessvalue to Btnid,privilegeoperation as "enabled" 5, Privilegeoperation is set to "disabled" if you need to prohibit the permissions of individual users. If not clear can see: Database design: Four, the conclusionSpeaking so much, in fact I recommend only privilege table design. This table is the design of the WHO, what, how problem prototypes. Not only is extensibility, flexibility is good,
permissions to user/role, privilegemaster "user" or "role", privilegemastervalue as UserID or roleid,privilegeaccess as "button", Privilegeaccessvalue to Btnid,privilegeoperation as "enabled" 5, Privilegeoperation is set to "disabled" if you need to prohibit the permissions of individual users. If not clear can see: Database design: Four, the conclusionSpeaking so much, in fact I recommend only privilege table design. This table is the design of th
Solution | Connection Database | Data source tomcat Server is composed of a series of configurable Russian components, the core of which is the Catalina servlet container, the following is the component relationship
......................
Nested class elements can be added to container components such as:
So in Server.xml, we just add that there is no context tag in the tomcat5.0.x, so we used to always add a location error without knowing the
if exists (select 1 from sysobjects where name = ' Sysproperties ' and xtype = ' V ')BeginDROP VIEW syspropertiesEndGOCREATE VIEW syspropertiesAsSELECT class as id,minor_id as smallid,* from sys.extended_properties-------Get the table structure in SQL Server 2005, execute the above statement firstSELECTTable name = Case A.colorder If 1 then c.name ELSE ' END,Order = A.colorder,Field name = A.name,Identification = Case ColumnProperty (a.id,a.name, ' is
Label:1, the query statement as far as possible do not use SELECT * and other operations, reason: avoid querying unnecessary data, avoid the table structure changes after the SQL statement error2, to where, group By,order by and so on after the word Chegasso to raise the speed, but the index can not be too many.3, to understand the database design several paradigms, but design sometimes need appropriate ill
Tags: modify first style null database table Expand char exists in a single columnTable structure Operations: Add a single column: ALTER TABLE TB_NAME add [column] Col_name Add a column: Alter TABLE ' sudty ' add ' aaa ' int; Add multiple columns: Specify where to add: The default is added in the last column, which can be added after a column with After+col_name You can add the first column by usi
Toad Export Data dictionary, export all table structure of database into HTMThe first step:Step two: Select the databaseStep three: Select paths and set other configurationsFourth step: After the successful build, the system will pop up a prompt to ask whether to open.The resulting table frame effect is as follows:A data dictionary is often required to write software documents, and this method can be used t
Tags: style blog http ar color sp on data divObjective:Whether the database table design of infinite tree structure is reasonable, directly affects whether the UI layer is convenient to query the associated data according to the tree.1. Table field:int uncheckedf_name nvarchar (+) Checkedf_parenttypeid nvarchar() checkedf_code nvarchar ( checkedf_recordstatus int Checked)2. Table Da
Tags: des style blog http color os io strong①sqlserver2008 version Export database structure and data SQL②SQLSERVER2008R2 version Export database structure and data SQLAcquisition
I. Syntax of copying a table:
Create table name as (subquery)
Example: copy the emp table in scott, the default database installed by El.
Create table myemp as (select * from emp );
In this example, the table structure and table content are copied together.
Ii. Copy the table structure
Create table name as (subquery where 1 = 2), that is, adding a condition
( datekey)-- Re-rebuilding the column-clustered indexThen execute the query statement: Select Top 3 * from personNotice the same statement that the return has changed. A clustered index can be the order of the table, affecting the top statement.6. Create a nonclustered indexUse [pratice] gocreate TABLE Department8 (DepartmentIDintIDENTITY (1,1) not NULL, Name NVARCHAR ( $) not NULL, GroupName NVARCHAR ( $) isn't NULL, company NVARCHAR ( -), ModifiedDate datetime not NULL DEFAULT (getdate ()
Today, three small problems are solved:
Problem 1: a prompt is always prompted when the Access database is opened on the local machine.: "Windows is configuring Microsoft Office Professional Edition 2003. Please wait"
Solution:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Manually change the Registry
Procedure:
1. Click Start, click Run, type regedit, and click OK ".
2. Locate and click the followin
Database structure optimized by MySQL: bitsCN.com optimizes the table data type using the procedure analyse function
The data type used by the table depends on the application. In MySQL, you can use the procedure analyse () function to analyze the current application table. This function can provide optimization suggestions for the data types of columns in the database
There are several versions of Project Databases installed in the machine. I want to know what the New and Old database structures are like. I searched several gadgets on the Internet. Either oracle is not supported, or the functions are too weak. Only tables can be compared, and views, processes, triggers, and so on are not supported. Being depressed, suddenly, a big fairy post caught my eye -- use PLSQL developer, tools-compare user objects! I will i
In the process of using a database, it is sometimes necessary to change its table structure, including changing the name of the field, or even changing the relationship between different database fields. The command that can achieve this change is alter, whose basic syntax is as follows:Altertabletable_namealter_spec[,alter_spec ...1: Delete Column
Altertable "t
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.