所以这是函数
`
create function createGridFromChart(p_y_value character varying) returns text
language plpgsql
as
$$
DECLARE
v_query text;
BEGIN
v_query = 'SELECT result,
dateG,
(SELECT name player1 from mts_players WHERE mts_game.id_player1 = mts_players.id),
(SE
我有python2.7.3和任何站点包的虚拟化。在这个服务器上-python2.6.6。我需要python 2.7.3作为主解释器
wsgi.py文件:
import os
import sys
import site
# Add the site-packages of the chosen virtualenv to work with
site.addsitedir('/home/aaodegov/virtual_envs/basic_env_2/lib/python2.7/site-packages')
# Add the app's directory
下面是我访问数据库的代码,我得到了以下错误:
org.json.JSONException:价值
public void onClick(View v) {
// TODO Auto-generated method stub
tim = time.getText().toString();
na = name.getText().toString();
da = date.getText().toString();
insert();
我有以下界面
public interface MTS{
public SrvResponse sendMessage(MTSModel msg);
public SrvResponse sendMessage(MTSModel msg, Type type);
}
实施
@Component
public class MTSImpl implements MTS {...}
在春季启动时,我可以限制用户只使用自动引导接口private @Autowired MTS service;而不是MTSImpl吗?
我有两张桌子
mts
id
customer_id
created_at
mos
id
customer_id
created_at
我想得到在mts中输入的最后一次,并计算mos (mts.created_at)的结果。所有这些都应由customer_id分组。
我有一个像这样的简单查询的想法,但这是行不通的。
SELECT id, created_at, COUNT(id)
FROM mos
WHERE created_at > (SELECT MAX(created_at) FROM mts)
GROUP BY customer_id