• DE
  • EN
  • FAQ
  • Download
  • Contact
  • Login
  • Account
  • Logout
  • Home
  • Functionality
    • The SQL4automation connector
    • Establish a database connection in 2 steps
    • Data management in the past and today
    • Connector & tools
    • Video Tutorial
  • Compatibility
    • Supported controllers
    • Supported databases
    • Supported MES
    • Supported platforms
  • License models
    • Software
    • Software & hardware
    • Download test version
    • Purchase/offer
  • Services
    • Commissioning
    • Consultation
    • Training courses
    • Support
  • References
  • News
  • FAQ
  • Download
  • Contact
  • Login
  • Account
  • Logout
  • DE
  • EN

How do I generate a SQL query in the controller?

  • Can I write data to the controller from outside?
  • Why do I need more than one link?
  • How much does it cost?
  • Which databases can be use?
  • Which controllers can be use?
  • How does the demo version work?
  • How do I generate a SQL query in the controller?

Creating the SQL command is different depending on the syntax of the controller. All controllers have in common that the string can be put together with the „Request-Arrays". Example:

g_saRequest[1] := "SELECT id, fParam2 FROM tTable1 WHERE " 
g_saRequest[2] := "iParam1 =" 
g_saRequest[3] := INT_TO_STRING(iMyPLCvariable)

The function block of the controller combines the array automatically and sends the following SQL command to the Connector/database:

"SELECT id, fParam2 FROM tTable1 WHERE param1=123"

 

  • SQL syntax
  • How long does a database query take?
  • How is the Connector licensed?
  • How to set up a network between controller, Connector and database?
  • Where do I get support?
download test version now

Inasoft Systems GmbH

Bahnhofstrasse 6, CH-3421 Lyssach
+41 34 445 20 10

» info@inasoft.ch

  • Concept & Design: smiroka
  • Programming: suxesiv
  • Data protection
  • Imprint
This website uses cookies to enable certain functions and to improve your user experience. By continuing to browse the site you are agreeing to our use of cookies. More Information OK