我正在尝试使用我的python django应用程序安装mongodb_engine,但是我收到此错误
Cannot find command 'git'
Run Code Online (Sandbox Code Playgroud)
我正在尝试从mongodb文档中获取此命令.http://django-mongodb-engine.readthedocs.org/en/latest/topics/setup.html
pip install git+https://github.com/django-nonrel/django@nonrel-1.5
Run Code Online (Sandbox Code Playgroud)
我相信这里的git导致问题,因为项目存储在git repo中.有没有办法安装git来运行这个pip命令?我试过多个来源,但无法让它工作.
我试图将值插入sql表,但我在sql查询中收到此错误
SQL Error: ORA-00001: unique constraint (uniqueKey) violated
00001. 00000 - "unique constraint (%s.%s) violated"
*Cause: An UPDATE or INSERT statement attempted to insert a duplicate key.
For Trusted Oracle configured in DBMS MAC mode, you may see
this message if a duplicate entry exists at a different level.
*Action: Either remove the unique restriction or do not insert the key.
Run Code Online (Sandbox Code Playgroud)
有没有办法跳过此错误并继续插入.像这样的东西
try
insert query
catch (unique constraint error)
continue inserting other values
Run Code Online (Sandbox Code Playgroud)