码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
解决plsql工具不能用中文字进行模糊匹配
今天碰到了 select * from table1 t where t.name like '模块a'查不出数据而select * from table1 t where t.name like 'a'却可以 所以想到应该是数据库字符集编码问题在系统变量里 添加NLS_LANGAMERICAN_A...
分类:数据库   时间:2015-08-26 15:24:01    阅读次数:142
T-SQL 总结
SP0_AddLinkedServer.sql [创建Linked SQL Server]USE [master]GOif exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SP_Temp_AddLinkedServ...
分类:数据库   时间:2015-08-26 15:16:00    阅读次数:175
sql 连接操作 汇总
连接条件可在FROM或WHERE子句中指定,建议在FROM子句中指定连接条件。WHERE和HAVING子句也可以包含搜索条件,以进一步筛选连接条件所选的行。??? ???? ????? 连接可分为以下几类:????? ???...
分类:数据库   时间:2015-08-26 14:10:18    阅读次数:200
生成批量删除多个表sql语句
--批量删除多个表select 'drop table ' +name from sysobjects where type = 'U' order by name
分类:数据库   时间:2015-08-26 13:34:46    阅读次数:181
MySQL查询当前数据上一条和下一条的记录
如果ID是主键或者有索引,可以直接查找:方法一:查询上一条记录的SQL语句(如果有其他的查询条件记得加上other_conditions以免出现不必要的错误):select * from table_a where id = (select id from table_a where id {$i....
分类:数据库   时间:2015-08-26 09:26:46    阅读次数:298
【LeetCode-面试算法经典-Java实现】【201-Bitwise AND of Numbers Range(范围数位与结果)】
【201-Bitwise AND of Numbers Range(范围数位与结果)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】代码下载【https://github.com/Wang-Jun-Chao】原题  Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of al...
分类:编程语言   时间:2015-08-26 08:20:22    阅读次数:150
MYSQL 多表更新 UPDATE SET like concat('%',abc,'%');
SQL语句为:select * from table1 where `text` like CONCAT('%',(select name from table2 where id =3),'%');UPDATE ecs_region a,nation b SET a.code = b.code ....
分类:数据库   时间:2015-08-26 08:15:36    阅读次数:902
【LeetCode】109& - Convert Sorted List to Binary Search Tree&Convert Sorted Array to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.Solution 1: recursionruntime: 28ms./** * ...
分类:其他好文   时间:2015-08-26 01:36:22    阅读次数:119
Delphi ADOQuery连接数据库的查询、插入、删除、修改
//查询记录procedureTForm1.Button1Click(Sender: TObject);beginADOQuery.Close;ADOQuery.SQL.Clear;ADOQuery.SQL.Add('select * from YourTABLE where 查询条件');ADOQ...
分类:数据库   时间:2015-08-25 23:30:29    阅读次数:177
LeetCode(36)Valid Sudoku
题目Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with the character ‘.’. A partially filled sudoku wh...
分类:其他好文   时间:2015-08-25 21:46:23    阅读次数:153
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!