Comments (11)
Can you provide the full error, and on which .sql file you get it on?
Also, which version of PGSQL are you using?
from stream-site.
SQL hatası:
ERROR: syntax error at or near "CREATE"
LINE 5: CREATE TABLE subscribers
^
Üstteki hata, aşağıdaki ifade içinde oluştu:
SELECT COUNT(*) AS total FROM (-- Table: subscribers
-- DROP TABLE subscribers;
CREATE TABLE subscribers
(
host_account text NOT NULL,
subscriber text NOT NULL,
CONSTRAINT subscribers_pk PRIMARY KEY (host_account, subscriber),
CONSTRAINT host_account_fk FOREIGN KEY (host_account)
REFERENCES users (email) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE CASCADE
)
WITH (
OIDS=FALSE
);
ALTER TABLE subscribers
OWNER TO pg_sql_account_here;
COMMENT ON TABLE subscribers
IS 'Table for managing subscribers for channels') AS sub
from stream-site.
PostgreSQL 8.4.20
from stream-site.
You need to change pg_sql_account_here to your local PostgreSQL account.
from stream-site.
editing , but still this error
CREATE TABLE subscribers ( host_account text NOT NULL, subscriber text NOT NULL, CONSTRAINT subscribers_pk PRIMARY KEY (host_account, subscriber), CONSTRAINT host_account_fk FOREIGN KEY (host_account) REFERENCES users (email) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE ) WITH ( OIDS=FALSE )
MySQL çıktısı: Belgeler
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(
OIDS=FALSE
)' at line 10
my sql
-- Table: subscribers
-- DROP TABLE subscribers;
CREATE TABLE subscribers
(
host_account text NOT NULL,
subscriber text NOT NULL,
CONSTRAINT subscribers_pk PRIMARY KEY (host_account, subscriber),
CONSTRAINT host_account_fk FOREIGN KEY (host_account)
REFERENCES users (email) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE CASCADE
)
WITH (
OIDS=FALSE
);
ALTER TABLE subscribers
OWNER TO admin_1;
COMMENT ON TABLE subscribers
IS 'Table for managing subscribers for channels';
from stream-site.
from stream-site.
I've just tested creating a new table using this exact query with no errors.
from stream-site.
It looks like whatever editor/administration tool that you're using is causing the problem. I would recommend trying to import directly from CLI or pgAdmin III if possible.
from stream-site.
this is my line
-- Table: subscribers
-- DROP TABLE subscribers;
host_account text NOT NULL,
subscriber text NOT NULL,
CONSTRAINT subscribers_pk PRIMARY KEY (host_account, subscriber),
CONSTRAINT host_account_fk FOREIGN KEY (host_account)
REFERENCES users (email) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE CASCADE
WITH (
OIDS=FALSE
ALTER TABLE subscribers
admin_test
COMMENT ON TABLE subscribers
IS 'Table for managing subscribers for channels';
and ı get this error:
from stream-site.
You're missing a lot of () and ; from the original command if that's exactly what you're putting in. Syntax is very important, you can't remove the command characters.
from stream-site.
Closing as this is an install issue and not a problem with the site itself.
from stream-site.
Related Issues (20)
- Reboot of nginx not possible HOT 4
- vidoe.js: player going fullscreen causes scroll bar position to reset HOT 1
- [Suggest]Stream Offline Image HOT 5
- sql error HOT 2
- Error HOT 5
- stop SSL HOT 7
- Share streaming HOT 1
- Stream to over services too HOT 7
- P2P-Streaming? HOT 1
- Route /watch 404 HOT 2
- Alternative to Flash for viewers HOT 2
- Migrate to nginx-http-flv-module and flv.js HOT 7
- Warning: pg_query_params(): Query failed: HOT 2
- Non-FLV, Unsupported media type! HOT 4
- Upstream services HOT 3
- php 7.4 HOT 10
- Connection refused when configured with SSL (self-signed) HOT 1
- Update scripts HOT 9
- No RTMP key - No E-mail sended HOT 1
- Impossible to watch a live stream. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stream-site.