General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Updating a field without going through each record
hello!
i use this command to update a logical field in table A which exists in table B.
SELE 1
USE a
GO TOP
SELE 2
USE b
GO TOP
SELE 1
DO WHILE .NOT. EOF()
SCATTER MEMVAR
SELE 2
GO TOP
LOCATE FOR m.checkno=checkno AND agycode=agycode
IF FOUND()
SELE 1
REPLACE ttype WITH .T.
ENDIF
SELE 1
SKIP
ENDDO
any better way than this?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only