SQL Server stored Procedure nesting sample

Source: Internet
Author: User
Tags range table name

1 Case Database table:

Enterprise Information table

Table name Prd_wxt_enterprise_tbl_enterpriseinfo
Data sources
Storing data Enterprise Information table
Primary key/FOREIGN key
Field name Description Type (Precision range) Note
Centerpriseid N Enterprise ID Char (10)
Senterprisename N Enterprise Name Varchar (200)
Sshortname n abbreviation Varchar (50)
Saddress N Address NVarchar (200)
E_system N Enterprise-owned systems (0 new systems, empty or 1 for old systems) Char (1)

Product table

Table name Shop_tbl_productinfo
Data sources
Storing data Product table
Primary key/FOREIGN key
Field name Description Type (Precision range) Note
P_code (PK) N Product SKU Number, that is, the next number, Product System No. (P123456789) Char (10) NOT NULL
Enterpriseid N Enterprise ID Char (10) NOT NULL
P_name N Product Name Nvarchar (100) NOT NULL
P_price N Product price (unit yuan) Money
P_userprice N Product member Price (unit yuan) Money
Remark N Remarks Nvarchar (500)

Related Article

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.