GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Peoplesoft  >  PeopleCode
Go To First  |  Previous Question  |  Next Question 
 PeopleCode  |  Question 18 of 30    Print  
What is the diffrence between SQLExec and CreateSQL?

  
Total Answers and Comments: 9 Last Update: October 21, 2008     Asked by: Pranuthi 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: RB
 

Sqlexec is used to select, insert, update or delete a single record using a sql statement. Sqlexec executes the sql comand from within pcode bypassing the component processor and interacts dorectly with database server.

If you want to select, insert, update or delete a series of record then use getsql or createsql and then execute sql class method.



Above answer was rated as good by the following members:
syedajmal
October 17, 2006 07:06:42   #1  
radhika.2784 Member Since: October 2006   Contribution: 1    

RE: What is the diffrence between SQLExec and CreateSQ...

Hello

According to me

CreateSQL is used to describe a query like &sql1 CreateSQl( ur query );

and SQLExec is used to execute that query like SQLExec(&sql1);

I am not so sure abt this.


 
Is this answer useful? Yes | No
November 08, 2006 04:05:03   #2  
Nataraj        

RE: What is the diffrence between SQLExec and CreateSQ...

SqlExec means it byepasses the component buffer and its directly contacts database to retrieve data. But it retrieves the data row by row and not possible for bulk insert.

But in the case of Create SQL we can able insert the data in bulk.


 
Is this answer useful? Yes | No
November 23, 2006 23:29:24   #3  
RB        

RE: What is the diffrence between SQLExec and CreateSQ...

Sqlexec is used to select insert update or delete a single record using a sql statement. Sqlexec executes the sql comand from within pcode bypassing the component processor and interacts dorectly with database server.

If you want to select insert update or delete a series of record then use getsql or createsql and then execute sql class method.


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 28, 2006 06:40:28   #4  
Harish Mahanta        

What is the diffrence between SQLExec and CreateSQ...

Ans:- SQLExec UPDATEs INSERTs and DELETEs go directly to the database server not to the Component Processor. CreateSQL only retrive the data.


 
Is this answer useful? Yes | No
December 19, 2006 23:23:17   #5  
ME        

RE: What is the diffrence between SQLExec and CreateSQ...
Perhaps surprising to some...SQLExec EXECUTES the SQL you pass as a parameter right then and there: SQLExec( Update table set fieldA valA where fieldB valB );CreateSql CREATES an SQL object think Object Oriented Programming 'cause that's all it is. This object has properties and methods you can then execute such as execute(): Local SQL &sql CreateSQL( Select field from table where fieldA :1 x ); While &sql.fetch(&variable) ... do stuff with &variable end-While;
 
Is this answer useful? Yes | No
January 06, 2007 03:48:41   #6  
       

RE: What is the diffrence between SQLExec and CreateSQ...

There are two basic differences:

1st : If you want to delete insert or update a single record use the SQLExec along with corresponding PeopleCode record object method.

If you want to delete insert or update a series of records all of the same type use the CreateSQL or GetSQL functions not the Execute SQL class method.

2nd : SQLExec can only Select a single row of data. If your SQL statement (or your SQL.sqlname statement) retrieves more than one row of data SQLExec sends only the first row to its output variables. Any subsequent rows are discarded. If you need to SELECT multiple rows of data use the CreateSQL or GetSQL functions and the Fetch SQL class method.


 
Is this answer useful? Yes | No
May 06, 2008 07:58:55   #7  
mahendraapatil Member Since: May 2008   Contribution: 1    

RE: What is the diffrence between SQLExec and CreateSQL?

shs


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
May 16, 2008 07:06:05   #8  
bandisdevi Member Since: April 2008   Contribution: 21    

RE: What is the diffrence between SQLExec and CreateSQL?
Create SQL is a people tool definition which can be created using application designer as well as using people code command create sql(). It is mainly used for reusability of the sql statemetns.

SQL Exec is a built-in function in people code. It is used to retrieve one row and can update multiple rows of data. It directly interact with the database.

 
Is this answer useful? Yes | No
October 21, 2008 14:06:30   #9  
suresh33.a Member Since: October 2008   Contribution: 2    

RE: What is the diffrence between SQLExec and CreateSQL?
The main Difference Between SqlExec and CreateSql is SqlExec directly interactive with
data base but Createsql not directly interactive with the data base

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape