I am getting Syntax error in sql (insert)

So, I am trying to add a data if a value in field does not exist. I am keep getting syntax error and not sure where I am getting it wrong. INSERT INTO COMPANY_TABLE(company_name, company_phone, company_url) VALUES (‘test’,’010-4843-0000′,’www.company.com’) WHERE NOT EXISTS (SELECT * FROM COMPANY_TABLE WHERE company_name = ‘test’); This is my code. I am… Read More I am getting Syntax error in sql (insert)

H2 Database not found with message it's available

I cannot login to my H2 Database event though i see the message that the database is available. DEBUG [main] [Log Context: ] org.springframework.jdbc.datasource.DriverManagerDataSource:134 Loaded JDBC driver: org.h2.Driver DEBUG [main] [Log Context: ] org.springframework.jdbc.datasource.DriverManagerDataSource:144 Creating new JDBC DriverManager Connection to [jdbc:h2:mem:testdb] INFO [main] [Log Context: ] o.s.boot.autoconfigure.h2.H2ConsoleAutoConfiguration:68 H2 console available at ‘/h2-console’. Database available at… Read More H2 Database not found with message it's available

Bootstrap 5 data-bs-toggle vs data-toggle. Adding the bs breaks my whole Popper

I’m one month into learning Web Development. From what I’ve read, the data-bs-toggle is the newer name for Bootstrap 5. What is the difference between Bootstrap data-toggle vs data-bs-toggle attributes? My code is simple. In the head, I’ve included CSS, jQuery, and JavaScript Bundle with Popper. In the body, I have two links with a… Read More Bootstrap 5 data-bs-toggle vs data-toggle. Adding the bs breaks my whole Popper

How to prevent child div overflow out of parent div on changing CSS zoom property?

I know we can prevent overflow of child content using CSS overflow property. But the overflow: scroll property is not preventing overflow. let zoomInElem = document.getElementById(‘zoomIn’) let zoomOutElem = document.getElementById(‘zoomOut’) let contentElement = document.getElementById(‘content’) zoomInElem.addEventListener(‘click’, function () { console.log(‘zoomIn’) contentElement.style.zoom = ‘200%’ }) zoomOutElem.addEventListener(‘click’, function () { console.log(‘zoomOut’) contentElement.style.zoom = ‘100%’ }) #main { width:… Read More How to prevent child div overflow out of parent div on changing CSS zoom property?

Nuxt3 Router – $route is not defined

I’ve set up a fresh Nuxt3 project, and am having an issue when I use a NuxtLink component to navigate to a dynamic route page. <template> <div> <div v-for="project in projects.projects"> <NuxtLink :to="{ path: `/projects/${project.id}` }">{{project.text}}</NuxtLink> </div> <button @click="projects.addProject(‘Test Project’, ‘Director’)">Add Project</button> </div> </template> <script> import { useProjectsStore } from ‘@/store/projects.js’ export default { setup()… Read More Nuxt3 Router – $route is not defined