Closed
Solved
"PCO" in SQL statement
PRPC uses "PCO"."ColumName" as "Property Name" syntax in the sql statement. What is the keyword "PCO" and what PRPC requires it for?
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
PRPC uses "PCO"."ColumName" as "Property Name" syntax in the sql statement. What is the keyword "PCO" and what PRPC requires it for?
Accepted Solution
Hi,
I believe it is just an alias to the table name, created by prpc internally , to look the query more readable
as SELECT "PC0".PropA AS "PropA" , "PC0".pzInsKey AS "pzInsKey" FROM dbo.pc_Sae_HRServices_Work "PC0" WHERE "PC0".pxObjClass = 'Sae-HRServices-Work-ABC'
When we execute a report, to a main table, the alias will be maintained as PCO. If we use joins, join prefix will be used as an alias name.
PCO is just an alias in the query for whichever table is being selected from.
See some examples here.
Accepted Solution
Hi,
I believe it is just an alias to the table name, created by prpc internally , to look the query more readable
as SELECT "PC0".PropA AS "PropA" , "PC0".pzInsKey AS "pzInsKey" FROM dbo.pc_Sae_HRServices_Work "PC0" WHERE "PC0".pxObjClass = 'Sae-HRServices-Work-ABC'
When we execute a report, to a main table, the alias will be maintained as PCO. If we use joins, join prefix will be used as an alias name.
Hi,
PC0 is just an Alias for table name. For many Databases, Tables might needs to be called/identified using Schema name(Schema_NAME.TableName).
As per my understanding, For using column names, it is easier to use "PC0".ColumName(Alias for table) rather than calling Schemaname.TableName.cloumn name(Schema name wont be same for all customers).
Question Solved
Question Solved
Question
Question
Question Solved
Question
Question
Question
Question
Question Solved
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.