Crmsql queries table information and crmsql Information

Source: Internet
Author: User

Crmsql queries table information and crmsql Information

-- Query the object corresponding to the specified lookup field
Select name, OriginalLocalizedName from MetadataSchema. Entity
Where objecttypecode in (
Select objecttypecode from dbo. v_attributeobjecttypes where entityid in
(Select entityid from entity where name = 'new _ store ')
And attributename = 'new _ region'
)

-- Query asynchronous jobs
Select * from dbo. AsyncOperation

 

-- Query site maps
Select * from dbo. IsvConfigBase

-- Query organization information
Select * from dbo. Organization

-- Query the permissions of an object (entity: new_member)
Select * from dbo. PrivilegeBase where name like '% new_member'

-- Query stored procedure information
Select * from MetadataSchema. StoredProcedureCatalog


Use SQL to query table information

Select * from [Table name] where [Gender column name] = 'femal' and [address column name] = 'shanghai' and [age column name] <19;

How to Use the inner link to query the information of two tables in SQL

Select abstract, sending time, sender name, category, attachment,
Information read time from a, B where a. sender id = B. sender ID

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.