Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import arcpy
- from arcpy import env
- env.workspace = "C:/data"
- arcpy.CopyRows_management("accident.dbf", "C:/output/accident2.dbf")
- arcpy.DeleteRows_management("C:/output/accident2.dbf")
- # Set the workspace.
- arcpy.env.workspace = "C:/work/vancouver.gdb"
- # Get a list of all the tables.
- tableList = arcpy.ListTables()
- # Loop through the list and run truncate
- for table in tableList:
- arcpy.TruncateTable_management(table)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement