+ 4

Is there a console or a a place on the coding playground you can practice your SQL.

from sololearn

27th Feb 2018, 9:05 PM
Huzaifah Hensrot
Huzaifah Hensrot - avatar
14 ответов
+ 6
Nope.
27th Feb 2018, 9:38 PM
Maz
Maz - avatar
+ 4
There is one here, though http://www.dofactory.com/sql/sandbox
27th Feb 2018, 9:44 PM
Peter David Carter
Peter David Carter - avatar
27th Feb 2018, 9:47 PM
Peter David Carter
Peter David Carter - avatar
27th Feb 2018, 9:48 PM
Peter David Carter
Peter David Carter - avatar
+ 3
SQL is a database that uses code, you HAVE to have a code attached.
27th Feb 2018, 9:49 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
Another one here: http://sqlfiddle.com
27th Feb 2018, 9:47 PM
Peter David Carter
Peter David Carter - avatar
+ 1
I suppose you could set something up to connect to an SQL database with C# or JavaScript etc, but that solution would likely require significant maintainance and effort to make it usefully available to the community. Short answer no.
27th Feb 2018, 9:42 PM
Peter David Carter
Peter David Carter - avatar
+ 1
@Pegasus I think you mean SQL is a query language that utilises existing data.
27th Feb 2018, 9:53 PM
Peter David Carter
Peter David Carter - avatar
+ 1
@Pegasus you can manipulate database without code, directly from command line by typing query.
27th Feb 2018, 10:55 PM
code learner
code learner - avatar
+ 1
Hey @Peter Carter , I created a free web host on byet and I cannot interact with sql. Do you know any way to interact with it?
28th Feb 2018, 4:14 AM
Arda Aydın
Arda Aydın - avatar
+ 1
@Peter Carter Wow thanks for replying! at byethost it came all installed mysql so I just created an account 🤣. AFAIK I should have access to it and it gave me a link for db and username and pword too. I will check it out in a few secs
28th Feb 2018, 12:53 PM
Arda Aydın
Arda Aydın - avatar
+ 1
yes it's on https, so this counts as SSH enabled? If I have a mistake please correct me because I am unexperienced on these things.
28th Feb 2018, 12:59 PM
Arda Aydın
Arda Aydın - avatar
0
@Arda Aydin Do you have direct SSH access to the server? What method did you use to setup the SQL database? If there really is sufficient interest I might get chance to setup access to a user area on my PostgreSQL server, but that's potentially a pretty big job, so if you've got part of a solution and I can help link it to a SoloLearn sandbox that might be better? I'm working from home today and need to do proper work stuff and attend a few web meetings but after I finish I'm willing to lend a hand.
28th Feb 2018, 7:08 AM
Peter David Carter
Peter David Carter - avatar
0
@Arda Aydin Still at work for three-four hours, but quickly: 1) No. HTTPS enables the browser to communicate with the server securely (loosely speaking), while SSH allows secure access to the server shell (e.g. the command line, or BASH). 2) It may be easier if we remote on to my server (email me at peter.carter.mail@gmail.com and I'll send you a login once I have finished work, and help you to setup SSH), but basically what we'll need to do is write a simple API to allow code entered inside a web form in the sandbox in SoloLearn to be sent to my sandbox SQL server and to communicate with it in two directions. A non-trival but particularly interesting task. Or there's Swagger...
28th Feb 2018, 1:18 PM
Peter David Carter
Peter David Carter - avatar