小编Dan*_*ima的帖子

将getdate()转换为int

当我运行以下查询时:

select convert(int, getdate())
Run Code Online (Sandbox Code Playgroud)

我得到了结果:

-----------
41238

(1 row(s) affected)
Run Code Online (Sandbox Code Playgroud)

有谁知道这是什么意思?

sql int casting getdate

8
推荐指数
1
解决办法
1万
查看次数

Silex上的绑定方法

我无处可寻.所以我问:在silex上,为什么我们使用bind()?例如,在静态页面的这种路由上:

$pages = array(
    '/'      => 'index',
    '/blog'  => 'blog',
    '/about' => 'about',
);

foreach($pages as $route => $view) {
    $api->get($route, function(Silex\Application $app) use($view) {
        return $app['twig']->render($view.'.html');
    })->bind($view);
}
Run Code Online (Sandbox Code Playgroud)

php routes silex

3
推荐指数
1
解决办法
4431
查看次数

标签 统计

casting ×1

getdate ×1

int ×1

php ×1

routes ×1

silex ×1

sql ×1