--根据另一张表修改表中的数据
update Admin_FCOutDt set oLastId=T.contractID
from
(select crm_contract.contractTopic,crm_contract.contractID from Admin_FCOutDt
left join crm_contract
on Admin_FCOutDt.Contract...
分类:
数据库 时间:
2015-01-06 09:59:41
阅读次数:
209
oracle 性能优化操作五:尽量去掉 "
尽量去掉 "
例:
UPDATE SERVICEINFO SET STATE=0 WHERE STATE
以上语句由于其中包含了"
实际应用中,由于业务逻辑的限制,字段state为枚举值,只能等于0,1或2,而且,值等于=1,2的很少。
因此可以去掉"
修改为:
UPDATE SERVICEINFO SET STATE=0 WHERE ...
分类:
数据库 时间:
2015-01-06 09:59:24
阅读次数:
146
int main(){ typedef std::string AddressLines[4]; std::string *pal = new std::string[4]; std::string *pal1 = new AddressLines; delete [] pa...
分类:
编程语言 时间:
2015-01-06 07:09:15
阅读次数:
212
输入两个字符串,找出在第一个字符串中,有多少个第二个子串,输出个数,并输出删除全部第二个子串后的字符串。
输入:abcdcde cd
输出:2 abe
#include
#include
using namespace std;
int delete_sub_str(const char *str,const char *sub_str,char *result)
{
...
分类:
其他好文 时间:
2015-01-06 00:50:31
阅读次数:
140
change 单点修改query 区间最值 1 Program XJOI2321; 2 const maxn=200008; 3 var l,r,max:array[0..maxn*4] of longint; 4 i,m,n,ans,p,x:longint; 5 ch:char; ...
分类:
Web程序 时间:
2015-01-05 23:18:31
阅读次数:
244
$query = TableModel::find()->where([‘xxx’=>xxx]);var_dump($query->prepare(\Yii::$app->db->querybuilder)->createCommand()->rawSql);
分类:
数据库 时间:
2015-01-05 20:20:14
阅读次数:
187
Sometimes if we generated controller, model..., and then find the name we have inputed is wrong, so how to delete all the file associated with them? You can try cmd: Example:(for Controller)
rails ...
分类:
其他好文 时间:
2015-01-05 19:01:27
阅读次数:
171
问题:update不能更新表表中19条记录,在更新的时候,偶尔能更新,偶尔就update不动了。更新操作执行的时候,就不动了,好象是死掉一样.关于数据库事务引起的问题在oracle一个事务没有提交之前,下一个事务是处于挂起状态,通常会出现表被锁定,就是上述的假死状态。查看被挂起的事..
分类:
数据库 时间:
2015-01-05 18:59:40
阅读次数:
328
使用CocoaPods来添加第三方类库,无论是执行pod install还是pod update都卡在了Analyzing dependencies不动
原因在于当执行以上两个命令的时候会升级CocoaPods的spec仓库,加一个参数可以省略这一步,然后速度就会提升不少。加参数的命令如下:
pod install --verbose --no-repo-update
pod update --v...
分类:
其他好文 时间:
2015-01-05 18:50:56
阅读次数:
165