Curriculum ideological and political education is an important means to achieve the goal of cultivating morality and nurturing talents. Through the investigation of students' rational identification, emotional cognition, and behavioral tendencies in the early stage of ideological and political education in the course of "Database Principles and Applications", it was found that there are three main problems: weak ideological and political concepts in the course and insufficient value cognition of students; Lack of correlation between curriculum and ideological and political education, and insufficient emotional stimulation of students; The teaching method is single, and the effectiveness of ideological and political education in the curriculum is poor. This article mainly explores the use of OBE education philosophy to enhance teachers' ability to teach ideological and political education through the establishment of curriculum ideological and political concepts; Digging deep into ideological and political elements and reconstructing teaching content; Innovate ideological and political teaching methods and carry out effective teaching; Innovate the evaluation system for ideological and political education in courses, improve the effectiveness of ideological and political education in courses, and achieve educational goals.