码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
MsSQL利用日志备份恢复到某一时间点
在做update或delete操作时忘带where条件或where条件精度不够,执行之后导致数据丢失或更新错误等严重后果,如果你的数据库已有相应的完整备份,并且不能备份日志(truncate log on checkpoint选项为1)可以利用事务日志的备份来进行数据恢复.恢复数据具体步骤如下:1,...
分类:数据库   时间:2015-03-16 12:41:20    阅读次数:188
Linq 之 Select 和 where 的用法
最近开始学习linq.自己也总结一下,方便以后查阅。Select同Sql中的select类似,即输出我们要的东东,感觉在linq中更加强大。Linq可以对集合如数组、泛型等操作,这里我们对泛型类型进行举例。建一个类如下:public class Customer { pu...
分类:其他好文   时间:2015-03-16 12:41:06    阅读次数:152
Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?思路:...
分类:其他好文   时间:2015-03-16 12:38:20    阅读次数:95
mysql 忘记密码,如何重新设置新密码(mysql5.6已测试过OK)
mysql 忘记密码了怎么办? 1. 关闭mysql service. 2. 新建一个 c:\my-init.txt 的文本文件,重设你的新密码到newpassword处,内容如下: UPDATE?mysql.user?SET?Password=PASSWORD(‘newpassword‘)?WHERE?Use...
分类:数据库   时间:2015-03-16 08:45:45    阅读次数:303
\(\frac 12\)
\(r=\frac{l}{e\cos \theta+1}\), where $l$ is the semi-latus rectum, and \(e\) is the eccentricity. so \(\frac{1}{r}=\frac el\cos\theta+\frac 1l\). Sin...
分类:其他好文   时间:2015-03-16 06:15:40    阅读次数:201
LeetCode --- 61. Rotate List
题目链接:Rotate List Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL. 这道题的要求是向右旋转链表...
分类:其他好文   时间:2015-03-15 23:43:32    阅读次数:353
[Leetcode]Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.分治是比较好而且容易想到的思路。 1 class Solution { 2 public: 3 T...
分类:其他好文   时间:2015-03-15 23:32:20    阅读次数:212
数据库常见问题解决汇总
(1)查询某个字段不为空的数据select * from tb_Grade where GradeName is not null 或 select * from tb_Grade where LEN(GradeName)>0或select * from tb_Grade where ISNULL(...
分类:数据库   时间:2015-03-15 23:29:23    阅读次数:171
mybatis_动态sql 查询、更新
1)sql where 条件select id="find" parameterType="User" resultType="User"> select id,name, age,address from user_c where 1=1 and id=#{id} and name li...
分类:数据库   时间:2015-03-15 22:50:05    阅读次数:189
Oracle查询数据中占用空间最大的表
--第一步,查询istaudit数据库文件ID,文件路径select file#,name from v$datafile where lower(name) like '%istaudit.dbf';--第二步,查询istaudit数据库文件的最大模块select max(t.BLOCK_ID) ...
分类:数据库   时间:2015-03-15 22:32:59    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!