我刚开始使用Oracle SQL并遇到了错误
第2行的错误:ORA-00906:缺少左括号
我的代码是这样的:
CREATE TABLE Employees(
dept_id varchar2(4), PRIMARY KEY, NOT NULL,
Dept_name varchar2(30), NOT NULL,
Manager_id varchar2(4));
Run Code Online (Sandbox Code Playgroud)
为什么我会收到此错误,我该如何修复它?因为我期望用3列创建一个表(dept_id,Dept_name,Manager_id)
我一直在关注GAE/Jinja2教程,幸好它包含了我在GAE中一直在努力的一个功能,即如何使用main.py文件链接html页面,以便可以使用Jinja2进行编辑.main.py的代码如下.
import webapp2
import logging
import jinja2
import os
jinja_environment = jinja2.Environment(
loader = jinja2.FileSystemLoader(os.path.dirname(__file__) + "/templates"))
class MainPage(webapp2.RequestHandler):
def get(self):
template_values = {
'welcome':'Welcome to my website!',
}
template = jinja_environment.get_template('homepage.html')
self.response.write(template.render(template_values))
class FeedbackPage(webapp2.RequestHandler):
def get(self):
feedbackvalues = {
}
template = jinja_environment.get_template('feedbackform.html')
class TopFinishers(webapp2.RequestHandler):
def get(self):
template = jinja_environment.get_template('Top10Finishers.html')
class Belts(webapp2.RequestHandler):
def get(self):
template = jinja_environment.get_template('WWETitlesBelt.html')
class TopWrestlers(webapp2.RequestHandler):
def get(self):
template = jinja_environment.get_template('Top10Wrestlers.html')
app = webapp2.WSGIApplication([('/',MainPage), ('/feedbackform.html',FeedbackPage),
('/Top10Finishers.html',TopFinishers),
('/WWETitlesBelt.html',Belts),
],
debug=True)
Run Code Online (Sandbox Code Playgroud)
在本教程中,我遵循了添加更多请求处理程序的过程,然后在app对象中实例化它们.但是,当我通过单击页面上的按钮加载页面时,它将我带到一个空白页面.当我点击进入"Top 10 Finishers"时,它会成功将我带到页面,因为URL是'localhost:etc/Top10Finishers.html.
但是,内容未显示,我是否需要在app.yaml文件中添加任何URL处理程序?
application: 205semestertwo
version: …Run Code Online (Sandbox Code Playgroud)