10-08-2007 4:22 PM
hi All,
i want to know what will this statement do
select * from *<dbtabname> where.......
thanks
Sundeep
10-08-2007 4:26 PM
This will select all fields from database table into internal table u have specified, which should be of the table type.
Never use select * unless u need more than 75% of the fields. this will create performance problems
10-08-2007 4:26 PM
Here data is populated from a <DB table name> which is assigned during runtime. So this is a Dynamic SELECT.
Check the program. There must be some code which assigns value to field symbol <dbtabname>.
ashish
10-08-2007 4:28 PM
it gets the data from the databasetable depending upon the
where condition.
suppose i have one table zone.
in this table 3 records will be there.the fields in the recores are
f1 f2 f3 f4.
one boss big a
two boss1 big1 a
theree boss2 big2 b.
if u write select statement like this
select * from zone where f4 = 'a'.
u get the fallowing records
one boss big a
two boss1 big1 a
10-08-2007 4:35 PM
hi
good
i dont think select statement works like this,
if you give the statement as select * from * mara, it ll give you a compile time error.
thanks
mrutyun^
10-08-2007 5:01 PM
Hi Sundeep,
As per my thinking it should give you <b>ERROR</b>...
Thanks & Regards
ilesh 24x7
10-09-2007 8:18 AM
Hello all,
i have seen this codeing in a standard progrmam and its working
select * from *mara where(some condition)
10-09-2007 8:23 AM
Hi
If you are specifying the field names then you will have to use into clause , since you dont want to use into clause then you select all the fields from the table using select *.
here is an sample
select single * from ekpo where ebeln = v_ebeln.
10-09-2007 9:01 AM
hi Naresh,
u did not get my question..
select * from <b>*mara</b>
what is is the use of the *before mara.
i want to know that.
thanks
sundeep
10-15-2007 9:01 AM
10-15-2007 9:12 AM
Generally *MARA when declared is treated as the Work Area for that program.
Suppose we declare
tables : mara, *mara.
MARA and * MARA are treatead as workareas and at the same time you can even retrieve data.
Regards
Gopi
10-15-2007 9:06 AM
Hi,
select * statement will select all the fields of the database table based on the condition given in the where clause.
Please reward points.
Thank you,
Gangula Vikram.