NALB 0 Newbie Poster

hello i'm trying to schedule event from mysql in node js i know how to execute query (connection.query("select * from test") but how to do that in nodejs
-------->

CREATE EVENT IF NOT EXISTS reurring_event
ON SCHEDULE EVERY 1 MINUTE
STARTS CURRENT_TIMESTAMP
ENDS CURRENT_TIMESTAMP + INTERVAL 1 minute
DO
INSERT INTO Demo (message,created_on)
VALUES ('RecurringTimeEvent',NOW());

---------->

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.