SELECT c.name,t.name TYPE,c.max_length,c.precision,c.scale,p.value FROM sys.extended_properties p INNER JOIN sys.columns c ON p.major_id=c.object_id A...
分类:
数据库 时间:
2015-05-13 18:28:21
阅读次数:
182
1、查询所有列
select * from 表名;
2、查询表结构
desc 表名;
3、查询指定列
select ename,sal,job from 表名;
4、oracle中查看所有表和字段
获取表:
select table_name from user_tables; //当前用户的表
select table...
分类:
数据库 时间:
2015-05-13 16:48:04
阅读次数:
187
select * from tablenamewhere mydata like CONCAT(CURDATE(), '%') limit 3这里concat是字符串拼接, concat('mys', 'q', 'l') -> mysqlCURDATE()是日期不算时间 2015-05-13
分类:
数据库 时间:
2015-05-13 16:34:27
阅读次数:
162
{dede:field.title/}_{dede:field name='typeid' runphp='yes'}$id=@me;global $dsql;$sql="select seotitle from dede_arctype where id=$id";$row=$dsql->getO...
分类:
其他好文 时间:
2015-05-13 16:11:05
阅读次数:
111
SELECT COUNT(*) FROM T_Employee WHERE FAge=23; //查看人数
ALTER TABLE T_Employee ADD FSubCompany VARCHAR(20);
ALTER TABLE T_Employee ADD FDepartment VARCHAR(20); //为T_Employee表增加两列
UPDATE T_Employee ...
分类:
数据库 时间:
2015-05-13 14:55:50
阅读次数:
175
今天调试出现了这个错误提示“Attempting to badge the application icon but haven't received permission from the user to badge the application”,代码里已经设置了ios8的处理,修改了半天,最后终于找到了错误原因是怎么造成有,是之前在手机设置里已经把通知给关闭了,所以才造成了这个错误提示的出...
分类:
移动开发 时间:
2015-05-13 14:48:43
阅读次数:
124
首先我们来看下 The Java® Language Specification 中官方对它的定义:The binary % operator is said to yield the remainder of its operands from an implied division; the left-hand operand is the dividend and the right-hand...
分类:
编程语言 时间:
2015-05-13 14:48:25
阅读次数:
126
$temporary1 = DB::select('select hair_bbs_article.*,hair_member.nickname,hair_member.headphoto,'
.' ('.$articleSort.' +(hair_bbs_article.order * '.$tenDayTime.')) as order1 from hair_...
分类:
数据库 时间:
2015-05-13 14:45:56
阅读次数:
351
DECLARE @resultstr VARCHAR(8000)SET @resultstr=''SELECT @resultstr=@resultstr+'|'+[BaseImage] FROM dbo.life_fc PRINT @resultstr
分类:
数据库 时间:
2015-05-13 14:32:24
阅读次数:
129