Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Standard Program (SQ02) hangs @ delete statement

Former Member
0 Likes
643

Hi,

I have problem when i try to display a infoset @ SQ02, when i debug it, it hangs @ this statement.

delete from aqgdb where relid = 'AQ'

and srtfd like l_sukeylang.

Any idea what could be wrong? AQGDB is not a big table, and i try selecting from SE16 with the same select statement, it is fine.

Thanks,

CK

3 REPLIES 3
Read only

Former Member
0 Likes
551

One explanation could be that srtfd is a 60Char field and a 'like' clause in the sql is going to take long (if it tries to match through the string for each record).

SE16 may be working because of its row-count limit (200/500 etc). You can probably remove this row-count to read all records (also specify a str value which is not normally to be found in aqgdb-srtfd, this will make it take longer).

cheers,

Read only

0 Likes
551

But the this table in my system has only 63 records. It shouldn't take that long either, it juz seem to hang @ this statement.

Read only

Former Member
0 Likes
551

Hi,

Check with the delete satatement

DELETE FROM dbtab WHERE cond.

DELETE FROM (dbtabname) WHERE cond.

delete from aqgdb where relid = 'AQ'

and srtfd <b>like</b> l_sukeylang. Like is not recommended with in delete right?