About 1,280,000 results
Open links in new tab
  1. Access SQL database from within a node-red function node

    Dec 11, 2022 · To access a MySQL or MariaDB database from within the JavaScript code of a Node-RED function node, you can use the node-red-node-mysql package. This package provides a Node-RED node that you can use to execute SQL queries and retrieve the results from within your JavaScript code.

  2. How to action MySQL queries inside function node? - Node-RED

    Oct 12, 2019 · In essence I need a way to save / retrieve values from the database inside my function node (to access stored data, or update stored data). I've tried using node.send to dynamically generate the topic payload for the MySQL node (sent via a dedicated output), but it's way too quirky and complex generating the query strings.

  3. mysql - query in a function node-red - Stack Overflow

    Jun 23, 2018 · By executing a Query in a functional node of Node-Red, how can I refer the rusult of the Query inside the same node? We are attaching our node. Or objectives is to create an automatic library, with this problem, we can not insert more than one equal book, with different ID.

  4. How to read data from MySQL in Node-Red example

    Dec 31, 2023 · 1. Drag the new MySQL node into the flow editor like the below screenshot. Configure the below things. Localhost, Port, Username, and password of a MySQL Database. 2.Drag function node. Configure function node to write SQL query. 3. Drag inject input node and Debug output node into flow editor and connect nodes like the below.

  5. node-red-contrib-sql

    Make the functions of list tables and columns available without deploying the connection node. In the Query constructor, in case using an enum, transform the checkbox to radios for operations like "equal".

  6. Using Microsoft SQL Server Database with Node-Red

    This Example shows how to use node-red-contrib-mssql to SELECT, UPDATE, and INSERT data into Microsoft SQL Server. Blog post and video walkthrough found at http://www.electronhacks.com/2017/04/using-microsoft-sql-server-with-node-red-and-mqtt/ Note: some third-party nodes may appear with blank styling, and …

  7. Node-Red – Storing IOT Data in a SQL Database - Steves Node-Red

    Jul 9, 2024 · In our node-red flow we will usually need to construct this command in JavaScript using a function node. The process is: Extract data elements from incoming data; Create SQL command; Pass SQL command to the database connector; …

    • Reviews: 3
    • MSSQL in a function - General - Node-RED Forum

      Jan 18, 2023 · The better way to do a request is enter the SQL in the mssql node & use parameters Example.. SELECT * FROM [Dev].[dbo].[MQTTData] WHERE Timestamp BETWEEN (@startDate AND @endDate)

    • sql - insert into in node red - Stack Overflow

      Sep 14, 2018 · edited I'm getting a string variable from a plc in node red via node "s7", the variable should be inserted into a MySQL DB, through the function node I tried to create a "insert into" query but in...

    • Node-RED MYSQL How to? - ee-diary

      Jul 19, 2022 · Here two simple methods to inject sql query command in node red are illustrated. One is use the inject node and the other is to use the function node. The following shows inject node and mysql node.

    • Some results have been removed
    Refresh