The previous article talked about how to connect to the database.
The following describes how to start operating the database.
StarteditingThe method is used to start an editing session,StartoperationMethod to start the editing operation. To submit the edit operation, callStopoperation. To cancel the edit operation, callAbortoperation. To complete the edit session, callStopeditingThis method accepts a Boolean parameter to indicate that the changes made in the session are submitted or abandoned.
Whether the Undo and redo stacks are enabled in the edit session depends onStarteditingBoolean parameter of the method. If the edit session contains multiple operations that may be rolled back (and redone) according to the corresponding conditions, undo and redo stacks should be enabled. Otherwise, you can disable undo and redo stacks by setting the parameter to false to improve system performance (for example, an edit session contains only one operation ).
Figure 1
Edit the spatial data
One of my data tables
There are three ways for arcpy to insert data, but the details are different.
Use the shape @ XY token
Use the shape @ token
Do not use a token
The following statements with errors at three points inserted using the shape @ token are automatically ignored = .. =
View the catalog
3 point data inserted successfully