GithubHelp home page GithubHelp logo

Add Items Errors about databases HOT 3 CLOSED

anniechen92 avatar anniechen92 commented on September 4, 2024
Add Items Errors

from databases.

Comments (3)

mikegfink avatar mikegfink commented on September 4, 2024

Recall piazza posts that we don’t need to add new items just update the stock. Please specifically read the instructions for adding items. They are very particular.

from databases.

anniechen92 avatar anniechen92 commented on September 4, 2024

Sorry... re-tested with existing item, but it still doesn't work.

(I'm assuming that the items being re-stocked will have the same UPC as the original item, which is usually the case)

Also, is there a reason why the price has to be a whole number?

Input: Item with UPC 213469245706
Result:
Error: Error: %s.
Error: Duplicate entry '213469245706' for key 'PRIMARY'

from databases.

mikegfink avatar mikegfink commented on September 4, 2024

Price definitely shouldn’t be a whole number... I initially set the table as a real number with up to 2 decimal points, not sure what it is right now.

from databases.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.