Git Product home page Git Product logo

Comments (5)

zsx avatar zsx commented on July 22, 2024

Could you give me an example of your sql query? Thanks!

from mysql-r3.

G-o-r-d avatar G-o-r-d commented on July 22, 2024

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.

zsx avatar zsx commented on July 22, 2024

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.

zsx avatar zsx commented on July 22, 2024

发自我的小米手机

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.

G-o-r-d avatar G-o-r-d commented on July 22, 2024

Thank-you! That was it.

from mysql-r3.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.