Skip to content

Instantly share code, notes, and snippets.

@agonen
Created September 9, 2014 00:41
Show Gist options
  • Select an option

  • Save agonen/aab18c87f908414ef02b to your computer and use it in GitHub Desktop.

Select an option

Save agonen/aab18c87f908414ef02b to your computer and use it in GitHub Desktop.
python scripts lets
d = datetime.date(1992,1,1)
i = 1
delta = datetime.timedelta(days=30)
while d <= datetime.date(1998,11,1):
print("subpartition sitem",i," values less than (to_date('", d.strftime("%Y-%m-%d"), "','YYYY-MM-DD')),", sep="")
d += delta
i += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment