码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
Usage of the @ (at) sign in ASP.NET
from:http://www.mikesdotnetting.com/article/258/usage-of-the-at-sign-in-asp-netThursday, January 22, 2015 1:54 PMThe number of places where you might ...
分类:Web程序   时间:2015-07-03 20:36:15    阅读次数:142
恢复一个小时前数据
恢复一个小时前数据 select?*from?info_collective?as?of?timestamp?sysdate?-(1/(24))??where??regional_name?like?‘抚顺%‘ ? 注意红色字体?sysdate?-(1/(24)) ?若恢复n小时前数据则修改?s...
分类:其他好文   时间:2015-07-03 19:22:40    阅读次数:194
mybaits使用存储过程
如何使用Mybaits调用数据库存储过程,按以下顺序Oracle案例库:1.在数据库中创建以下存储过程:create or replace procedure pro_hello(p_result out varchar2) isbegin select * from 表名 where 条件=p_r...
分类:其他好文   时间:2015-07-03 19:01:42    阅读次数:130
oracle 主外键管理
使用主外键约束使得数据具有完整性。 1、查询表上所有的约束 select * from user_constraints t where t.table_name='FATHER'; 2、查询具有主外键关系的表 select c.owner,c.constraint_name,c.constraint_type,c.table_name,f.owner,f.constraint_name...
分类:数据库   时间:2015-07-03 17:34:57    阅读次数:157
MYSQL数据库表中字段追加字符串内容
$sql="update parts set p_notes=concat(p_notes,'{$p_notes}') where p_id={$p_id}";parts为表名p_notes为字段名{p_notes}为要追加的内容
分类:数据库   时间:2015-07-03 15:36:13    阅读次数:164
Error Code: 1175. You are using safe update mode and you tried to update a table
错误描述 11:14:39 delete from t_analy_yhd Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the opti...
分类:其他好文   时间:2015-07-03 12:22:48    阅读次数:449
定义游标
declare cursor 游标名称 is 查询语句; begin --其他语句 end; 列子: declare cursor cur_stu is select name from student where id=2; sname student.n...
分类:其他好文   时间:2015-07-03 12:12:53    阅读次数:95
SQL 脚本
1.oracle列转行Select Guid as CheckGoodsID,goodsid,code, (Select colordesc from Color where ID = ColorID) as Color, ...
分类:数据库   时间:2015-07-03 12:12:07    阅读次数:152
SQL Server2008创建数据库语法
use mastergoif exists(select * from sys.databases where name='MySchool') drop database MySchool --查看当前所要创建的数据库是否存在,有则删除之。go/*--案例:使用SQL语句创建数据库MySchool...
分类:数据库   时间:2015-07-03 11:54:04    阅读次数:213
在EF的code frist下写稳健的权限管理系统:仓储设计(三)
public class BaseRepository:IBaseRepository where T : class { protected EfConnection DbContext = ContextFactory.GetCurrentContext(); ...
分类:其他好文   时间:2015-07-03 09:07:20    阅读次数:131
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!