Comments (5)
Could you give me an example of your sql query? Thanks!
from mysql-r3.
Thanks for the quick reply, (sorry I took so long to check for a reply).
Here is the Rebol Test script:
Rebol [ Title: "Basic mySQL test"]
do %mysql-protocol.r3
Open-DB: mysql://[Username:Password]@[Domain]/[DBName]
db: open Open-DB
; Okay so far - no apparent errors in opening it
QueryStr: "SELECT * FROM Vehicle" ; Get everything from Table called Vehicle
insert db QueryStr
; also tried: insert db QueryStr make object![] as the code seems to suggest that it is expecting an object for options.
;
Table: copy db
close db
Record: first Table
print ["Record type:" type? Record] ; = block (in R2 but errors out before it gets here in R3)
from mysql-r3.
I am on my phone, so I can't check the code, but I dont think you are supposed to call insert on the port directly, but instead you should call send-sql
Gordon Raboud [email protected]编写:
Thanks for the quick reply, (sorry I took so long to check for a reply).
Here is the Rebol Test script:Rebol [ Title: "Basic mySQL test"]
do %mysql-protocol.r3
Open-DB-Table: mysql://[Username:Password]@[Domain]/[Table]
db: open Open-DB-Table
; Okay so far - no apparent errors in opening it
QueryStr: "SELECT * FROM Vehicle" ; rem At it's simplest form
insert db QueryStr
; also tried: insert db QueryStr make object![] as the code seems to suggest that it is expecting an object for options.
;
Table: copy db
close db
Record: first Table
print ["Record type:" type? Record] ; = block (in R2 but errors out before it gets here in R3)—
Reply to this email directly or view it on GitHub.{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Issue on GitHub","action":{"@type":"ViewAction","url":"https://github.com/zsx/mysql-r3/issues/1#issuecomment-60593652","name":"View Issue"}}
from mysql-r3.
发自我的小米手机
Gordon Raboud [email protected]编写:
Thanks for the quick reply, (sorry I took so long to check for a reply).
Here is the Rebol Test script:Rebol [ Title: "Basic mySQL test"]
do %mysql-protocol.r3
Open-DB-Table: mysql://[Username:Password]@[Domain]/[Table]
db: open Open-DB-Table
; Okay so far - no apparent errors in opening it
QueryStr: "SELECT * FROM Vehicle" ; rem At it's simplest form
insert db QueryStr
; also tried: insert db QueryStr make object![] as the code seems to suggest that it is expecting an object for options.
;
Table: copy db
close db
Record: first Table
print ["Record type:" type? Record] ; = block (in R2 but errors out before it gets here in R3)—
Reply to this email directly or view it on GitHub.{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Issue on GitHub","action":{"@type":"ViewAction","url":"https://github.com/zsx/mysql-r3/issues/1#issuecomment-60593652","name":"View Issue"}}
from mysql-r3.
Thank-you! That was it.
from mysql-r3.
Related Issues (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 mysql-r3.